074f352709
This changes parseDescription to properly encode things to be safe for usage without removing things like backslashes that may be relevant. * text.SanitizePlaintext already calls html.UnescapeString so we don't have to do that * Replace \n with space early * Remove duplicate white-space by splitting on fields and joining * HTML-escape the string we have * For extra certainty, encode the backslash as \ Fixes #1549 |
||
---|---|---|
.. | ||
about.go | ||
assets.go | ||
base.go | ||
confirmemail.go | ||
customcss.go | ||
domain-blocklist.go | ||
etag.go | ||
opengraph.go | ||
opengraph_test.go | ||
profile.go | ||
robots.go | ||
rss.go | ||
settings-panel.go | ||
thread.go | ||
web.go |