Matches valid HTML character entity references. Named entities are not checked to see if they are in the list of valid names. While that is possible, it's not something that should be done with a regular expression.
Text | Result |
---|---|
Copyright: © 2015 ACME Corporation
| match |
Copyright: © 2015 ACME Corporation
| match |
Copyright: © 2015 ACME Corporation
| match |
©
| match |
dec
hex
named
HTML 5 allows certain named entities to skip the trailing semicolon. This is NOT allowed by this regular expression.
For decimal and hexadecimal codepoints, the range is not checked, only the format.