-
Notifications
You must be signed in to change notification settings - Fork 14
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
HTML escaping in atom feed #110
Comments
As written in innoq/naveed#13 (comment), AFAIR an atom feed is supposed to contain xml entities. In this case feedworker should behave like a RSS reader and decode them. |
Good point. Statuses sends content with type HTML: For HTML escaping, it uses this function: https://github.com/weavejester/hiccup/blob/master/src/hiccup/util.clj#L55 which encodes I'll adapt the feed processor accordingly. |
Have we agreed that escaping is the right thing to do? If yes I will close this issue as won't fix. |
IMHO escaping is the right thing to do. The only question is whether or not to encode |
Text escaping in XML is defined as: http://www.w3.org/TR/xml/#syntax |
FWIW I noticed that these chars are also encoded in the HTML the app returns! :( |
It seems in HTML5 escaping ' and " is allowed (see: http://www.w3.org/International/questions/qa-escapes and http://www.tutorialspoint.com/html5/html5_entities.htm). |
This looks weird:
@<a href='/statuses/updates?author=st'& gt;st</a> /me is in love the simple things! But there&apos;s an issue with placing the cursor in the input field on iOS - the text doesn&apos;t scroll!
https://github.com/innoq/statuses/blob/master/src/statuses/views/atom.clj#L26 ?
The text was updated successfully, but these errors were encountered: