rss_widget의 제목 출력시 htmlspecialchars를 추가하여 html표시가 제대로 되지 않는 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4099 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-04-11 02:37:08 +00:00
parent 4741a41952
commit 71856d7313
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@
{@$i=1}
<select onchange="tab_menu_select({$tab_id}, {count($widget_info->rss_list)}, this.value, this);resize_rss_tabcontent('tab{$tab_id}',{$widget_info->rss_height})">
<!--@foreach($widget_info->rss_list as $key => $item)-->
<option value="{$i}">{$item->title}</option>
<option value="{$i}">{htmlspecialchars($item->title)}</option>
{@$i++}
<!--@end-->
</select>

View file

@ -9,7 +9,7 @@
<!--@foreach($widget_info->rss_list as $key => $item)-->
<li title="{strip_tags($item->description)}">
<span class="date">{$item->date}</span>
<span class="title"><a href="{$item->link}" onclick="window.open(this.href);return false">{$item->title}</a></span>
<span class="title"><a href="{$item->link}" onclick="window.open(this.href);return false">{htmlspecialchars($item->title)}</a></span>
</li>
<!--@end-->
</ul>

View file

@ -13,7 +13,7 @@
<!--@foreach($widget_info->rss_list as $key => $item)-->
<li>
<span class="date">{$item->date}</span>
<span class="title"><a href="{$item->link}" onclick="window.open(this.href);return false">{$item->title}</a></span>
<span class="title"><a href="{$item->link}" onclick="window.open(this.href);return false">{htmlspecialchars($item->title)}</a></span>
</li>
<!--@end-->
</ul>

View file

@ -11,7 +11,7 @@
{@$i=1}
<select onchange="tab_menu_select({$tab_id}, {count($widget_info->rss_list)}, this.value, this);resize_rss_tabcontent('tab{$tab_id}',{$widget_info->rss_height})">
<!--@foreach($widget_info->rss_list as $key => $item)-->
<option value="{$i}">{$item->title}</option>
<option value="{$i}">{htmlspecialchars($item->title)}</option>
{@$i++}
<!--@end-->
</select>