We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While the tokenizer will gracefully decode most encoded characters:
⇒ node > var Tokenizer = require( 'simple-html-tokenizer' ); undefined > Tokenizer.tokenize( '&' )[ 0 ].chars === '&' true
It doesn't handle characters whose encodings exceed 16 bits (e.g. emoji):
⇒ node > var Tokenizer = require( 'simple-html-tokenizer' ); undefined > Tokenizer.tokenize( '😅' )[ 0 ].chars === '😅' false
It may be that EntityParser should use String.fromCodePoint in place of String.fromCharCode instead, or an equivalent polyfill?
EntityParser
String.fromCodePoint
String.fromCharCode
Related:
The text was updated successfully, but these errors were encountered:
Seems reasonable to me...
@krisselden what do you think?
Sorry, something went wrong.
Yes
wycats
chadhietala
Successfully merging a pull request may close this issue.
While the tokenizer will gracefully decode most encoded characters:
It doesn't handle characters whose encodings exceed 16 bits (e.g. emoji):
It may be that
EntityParser
should useString.fromCodePoint
in place ofString.fromCharCode
instead, or an equivalent polyfill?Related:
The text was updated successfully, but these errors were encountered: