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
Add HTML5 escape sequence for ' #164
Conversation
Looks like this needs some work, since it's turning |
It would probably make sense to support numbered entities across the board, rather than specifically #39. |
@jelmer I'm fine with adding numbered entities, but I'd like some feedback on structure. Do I just add more entries to typedef struct htmlentity {
char code[7];
char is[3];
char numeric[7];
} htmlentity_t; |
Ah, the numbers for the numeric representation map directly to their ASCII values, so maybe capture the whole string that represents the number, |
I think for now i'll just add more to the list, rather than make large changes. Let me know if this is sufficient |
Hmm. I think I've just changed my mind here. Supporting arbitrary numbers opens us up to a whole can of worms (do we allow you to insert � ?). Maybe we can just support ' for now, and reevaluate if we end up with a long list of numbered entities here. (also, perhaps there's a library we're already depending on that has this functionality?) |
That works for me. |
This is based off a bug report and discussion in the mastodon plugin for Bitlbee, where mastodon sends
'
for single quotes in toots.