content 위젯 : title 자르기에서 HTML태그를 포함하여 자르는 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6305 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2009-05-07 23:33:38 +00:00
parent 961264080e
commit c1dee8afa0

View file

@ -727,8 +727,16 @@
return $this->get('module_srl');
}
function getTitle($cut_size = 0, $tail='...'){
if($cut_size) $title = cut_str($this->get('title'), $cut_size, $tail);
else $title = $this->get('title');
$title = strip_tags($this->get('title'));
if($cut_size) $title = cut_str($title, $cut_size, $tail);
$attrs = array();
if($this->get('title_bold') == 'Y') $attrs[] = 'font-weight:bold';
if($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = 'color:#'.$this->get('title_color');
if(count($attrs)) $title = sprintf("<span style=\"%s\">%s</span>", implode(';', $attrs), htmlspecialchars($title));
return $title;
}
function getContent(){