mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
요약본 추출시 htmlspecialchars 사용
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2287 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5a11332174
commit
a25d5cc602
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSummary($str_size = 50) {
|
function getSummary($str_size = 50) {
|
||||||
$content = strip_tags($this->get('content'));
|
$content = htmlspecialchars(strip_tags($this->get('content')));
|
||||||
return cut_str($content, $str_size, '...');
|
return cut_str($content, $str_size, '...');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue