mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #2600 misplaced decoding line
This commit is contained in:
parent
40067c0b53
commit
c3102da73f
1 changed files with 1 additions and 1 deletions
|
|
@ -657,9 +657,9 @@ class DocumentItem extends BaseObject
|
|||
$content = preg_replace('!(</p>|</div>|<br)!i', ' $1', $this->get('content'));
|
||||
//$content = preg_replace_callback('/<(object|param|embed)[^>]*/is', array($this, '_checkAllowScriptAccess'), $content);
|
||||
//$content = preg_replace_callback('/<object[^>]*>/is', array($this, '_addAllowScriptAccess'), $content);
|
||||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||
if($strlen)
|
||||
{
|
||||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||
return escape(cut_str($content, $strlen, '...'), false);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue