elixir-rss icon indicating copy to clipboard operation
elixir-rss copied to clipboard

Ensure text within XML elements is properly escaped

Open misfo opened this issue 7 years ago • 1 comments

I tried to subscribe to the The Phoenix blog with Blogtrottr, but it couldn't subscribe because of an XML parsing error (see the parse error here). It looks like an unescaped & was causing the parse error. This PR has xmerl handle the escaping for us.

Fixes #9

Btw, the second commit isn't strictly necessary but it might help prevent invalid XML in the future...

Thanks!

misfo avatar Jan 01 '18 22:01 misfo

Sounds critical to me as user's content may end up in the feed (ex: a comments feed). Nice work @misfo

Any chance to see this PR merged soon ?

Betree avatar Jan 27 '18 23:01 Betree