Skip to content
New issue

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

Missing charref error #167

Closed
jockee opened this issue Mar 7, 2016 · 2 comments
Closed

Missing charref error #167

jockee opened this issue Mar 7, 2016 · 2 comments

Comments

@jockee
Copy link

jockee commented Mar 7, 2016

:mochiweb_html.parse("&;"), :mochiweb_html.parse("&MISSING;") gives this.

** (CaseClauseError) no case clause matching: {:undefined, {:decoder, 1, 3, 2}}
src/mochiweb_html.erl:642: :mochiweb_html.tokenize_charref/2
src/mochiweb_html.erl:302: :mochiweb_html.tokens/3
src/mochiweb_html.erl:82: :mochiweb_html.parse/1

The specific case I bumped into was parsing an HTML email's content. It, for some reason, included this string:

"&dataCardSource=DAILY_SNAPSHOT_INT);"

Which resulted in the same error.

@etrepum
Copy link
Member

etrepum commented Mar 13, 2016

Thanks for the report!

@etrepum etrepum closed this as completed Mar 13, 2016
@jockee
Copy link
Author

jockee commented Mar 14, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants