Revert "title escaping: do not double-encode entities"

This reverts commit d6ce708930.
This commit is contained in:
Andrew Dolgov 2013-03-23 10:49:50 +04:00
parent 99534a3dde
commit bf1dc420b9
2 changed files with 2 additions and 4 deletions

View File

@ -432,8 +432,7 @@ 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"], ENT_COMPAT | ENT_HTML401,
'utf-8', false) . "\"
href=\"" . htmlspecialchars($line["link"]) . "\"
onclick=\"\">" .
truncate_string($line["title"], 200);

View File

@ -3022,8 +3022,7 @@
if ($line["link"]) {
$rv['content'] .= "<div class='postTitle'><a target='_blank'
title=\"".htmlspecialchars($line["link"], ENT_COMPAT | ENT_HTML401,
'utf-8', false)."\"
title=\"".htmlspecialchars($line['title'])."\"
href=\"" .
htmlspecialchars($line["link"]) . "\">" .
$line["title"] . "</a>" .