1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:45:56 +00:00

title escaping: do not double-encode entities

This commit is contained in:
Andrew Dolgov
2013-03-23 09:44:52 +04:00
parent 01dffac771
commit d6ce708930
2 changed files with 4 additions and 2 deletions

View File

@@ -432,7 +432,8 @@ class Feeds extends Handler_Protected {
$reply['content'] .= "<div onclick='return hlClicked(event, $id)'
class=\"hlTitle\"><span class='hlContent$hlc_suffix'>";
$reply['content'] .= "<a id=\"RTITLE-$id\"
href=\"" . htmlspecialchars($line["link"]) . "\"
href=\"" . htmlspecialchars($line["link"], ENT_COMPAT | ENT_HTML401,
'utf-8', false) . "\"
onclick=\"\">" .
truncate_string($line["title"], 200);