Re:Show HN: Mogo Chat – open-source team chat app written in...
by voicereasonish on Wednesday March 26, 2014 @01:04PM
(#7474731)
If you want to enable user markup, then build a simple parser, and use that to generate the correct styling you require.
[ Parent
| on HN ]
Re:Show HN: Mogo Chat – open-source team chat app written in...
by opendais on Wednesday March 26, 2014 @01:46PM
(#7475008)
My point was:
A) It was not as simple as you suggested if there was markup involved in the message.
B) They'd have to use a parser and I linked to a parser that sanitizes that was once used in a pretty big network of sites.
I'm uncertain if you misunderstood or are simply agreeing with me in a tone of writing that makes it sound like you disagree.
Re:Show HN: Mogo Chat – open-source team chat app written in...
by ashearer on Wednesday March 26, 2014 @02:51PM
(#7475527)
I think the point was that it's inherently less safe to allow arbitrary markup and then attempt to sanitize it, than to make a full parser that's incapable of generating unsafe HTML at any stage, all other things being equal.
The safety of widely-deployed Markdown + sanitizer libraries is largely thanks to testing at scale and a history of patches for XSS vulnerabilities.