Skip to content

Conversation

@j3lamp
Copy link
Contributor

@j3lamp j3lamp commented Dec 27, 2015

Encodes special characters as html entities, a common issue is   in the original source shows up as À in Dash.

Note: I'm new to Go so I may have implemented this in the worst way possible, therefore I'm open to all criticism. (-:

@technosophos
Copy link
Owner

I took a quick glance, and this looks good to me. Is it necessary to encode this many of the entities? I suppose better safe than sorry....

I'll take another look in the morning when I'm not so tired.

@technosophos
Copy link
Owner

I'm merging this. Thank you very much!

technosophos added a commit that referenced this pull request Dec 31, 2015
Encode special characters as HTML entities
@technosophos technosophos merged commit 7b71f0b into technosophos:master Dec 31, 2015
@j3lamp
Copy link
Contributor Author

j3lamp commented Dec 31, 2015

I don't know if all of them are needed, probably depends on the exact use case. The list of entities I used actually comes from Python's htmlentitydefs module: https://docs.python.org/2.7/library/htmllib.html#module-htmlentitydefs.

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

Successfully merging this pull request may close these issues.

2 participants