Ignore:
Timestamp:
2010/12/29 13:10:01 (13 years ago)
Author:
Seasoft
Message:

#862(テンプレート上のエスケープを簡単に)
#628(未使用処理・定義などの削除)

  • Smarty 変数 tpl_start

#879(jQuery の ready イベントと競合する body の onload イベントを使用している)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/default/rss/index.tpl

    r18700 r19785  
    2323<rss version="2.0"> 
    2424    <channel> 
    25         <title><!--{$site_title|sf_mb_convert_encoding:$encode|escape}--></title> 
     25        <title><!--{$site_title|sf_mb_convert_encoding:$encode|h}--></title> 
    2626        <link><!--{$smarty.const.SITE_URL}--></link> 
    27         <description><!--{$description|sf_mb_convert_encoding:$encode|escape}--></description> 
     27        <description><!--{$description|sf_mb_convert_encoding:$encode|h}--></description> 
    2828        <language>ja</language> 
    29         <managingEditor><!--{$email|escape}--></managingEditor> 
    30         <webMaster><!--{$email|escape}--></webMaster> 
     29        <managingEditor><!--{$email|h}--></managingEditor> 
     30        <webMaster><!--{$email|h}--></webMaster> 
    3131        <generator>web shoppings v1.0</generator> 
    3232        <copyright>(c) COPYRIGHT</copyright> 
     
    3939                    <link><!--{$smarty.const.SITE_URL}--></link> 
    4040                <!--{else}--> 
    41                     <link><!--{$arrNews[cnt].news_url|escape}--></link> 
     41                    <link><!--{$arrNews[cnt].news_url|h}--></link> 
    4242                <!--{/if}--> 
    4343                <title><!--{ $arrNews[cnt].news_title|sf_mb_convert_encoding:$encode|escape }--></title> 
    44                 <description><!--{$arrNews[cnt].news_comment|truncate:256|sf_mb_convert_encoding:$encode|escape}--></description> 
    45                 <pubDate><!--{$arrNews[cnt].news_date|escape}--></pubDate> 
     44                <description><!--{$arrNews[cnt].news_comment|truncate:256|sf_mb_convert_encoding:$encode|h}--></description> 
     45                <pubDate><!--{$arrNews[cnt].news_date|h}--></pubDate> 
    4646            </item> 
    4747        <!--{/section}--> 
Note: See TracChangeset for help on using the changeset viewer.