mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix double escaping of document and comment summary
This commit is contained in:
parent
173bed7c2a
commit
3c3e510c2e
2 changed files with 30 additions and 16 deletions
|
|
@ -466,10 +466,12 @@ class CommentItem extends BaseObject
|
|||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||
if($strlen)
|
||||
{
|
||||
$content = cut_str($content, $strlen, '...');
|
||||
$content = escape(cut_str($content, $strlen, '...'), false);
|
||||
}
|
||||
else
|
||||
{
|
||||
$content = escape($content);
|
||||
}
|
||||
|
||||
$content = escape($content);
|
||||
|
||||
if ($content === '')
|
||||
{
|
||||
|
|
@ -511,9 +513,12 @@ class CommentItem extends BaseObject
|
|||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||
if($strlen)
|
||||
{
|
||||
$content = cut_str($content, $strlen, '...');
|
||||
return escape(cut_str($content, $strlen, '...'), false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return escape($content);
|
||||
}
|
||||
return escape($content);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue