mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
parent
5ecb1241ca
commit
b7d38f0294
2 changed files with 7 additions and 8 deletions
|
|
@ -363,7 +363,7 @@ class commentItem extends BaseObject
|
||||||
{
|
{
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
return escape($content, false);
|
return escape($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -389,12 +389,12 @@ class commentItem extends BaseObject
|
||||||
$content = $this->get('content');
|
$content = $this->get('content');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||||
if($strlen)
|
if($strlen)
|
||||||
{
|
{
|
||||||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
return escape($content, false);
|
return escape($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -552,7 +552,7 @@ class documentItem extends BaseObject
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
|
|
||||||
return escape($content, false);
|
return escape($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getContentText($strlen = 0)
|
function getContentText($strlen = 0)
|
||||||
|
|
@ -570,14 +570,13 @@ class documentItem extends BaseObject
|
||||||
$content = $this->get('content');
|
$content = $this->get('content');
|
||||||
$content = preg_replace_callback('/<(object|param|embed)[^>]*/is', array($this, '_checkAllowScriptAccess'), $content);
|
$content = preg_replace_callback('/<(object|param|embed)[^>]*/is', array($this, '_checkAllowScriptAccess'), $content);
|
||||||
$content = preg_replace_callback('/<object[^>]*>/is', array($this, '_addAllowScriptAccess'), $content);
|
$content = preg_replace_callback('/<object[^>]*>/is', array($this, '_addAllowScriptAccess'), $content);
|
||||||
|
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
||||||
if($strlen)
|
if($strlen)
|
||||||
{
|
{
|
||||||
$content = trim(utf8_normalize_spaces(html_entity_decode(strip_tags($content))));
|
|
||||||
$content = cut_str($content, $strlen, '...');
|
$content = cut_str($content, $strlen, '...');
|
||||||
}
|
}
|
||||||
|
|
||||||
return escape($content, false);
|
return escape($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _addAllowScriptAccess($m)
|
function _addAllowScriptAccess($m)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue