Changeset 33403 for platform/tdiary

Show
Ignore:
Timestamp:
05/18/09 23:44:49 (4 years ago)
Author:
sho
Message:

escaped HTML in title

Location:
platform/tdiary/plugin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/en/nicovideo.rb

    r15799 r33403  
    1212def nicovideo_feed( i ) 
    1313        <<-HTML 
    14                 <table border="0" cellpadding="4" cellspacing="0" summary="#{i[:title]}"><tr valign="top"> 
    15                 <td><a href="#{i[:url]}"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></td> 
    16                 <td width="100%"><a href="#{i[:url]}"><strong>#{i[:title]}</strong></a> (#{i[:length]})</td> 
     14                <table border="0" cellpadding="4" cellspacing="0" summary="#{h i[:title]}"><tr valign="top"> 
     15                <td><a href="#{i[:url]}"><img alt="#{h i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></td> 
     16                <td width="100%"><a href="#{i[:url]}"><strong>#{h i[:title]}</strong></a> (#{i[:length]})</td> 
    1717                </tr></table> 
    1818        HTML 
     
    2121def nicovideo_html( i ) 
    2222        <<-HTML 
    23                 <table border="0" cellpadding="4" cellspacing="0" summary="#{i[:title]}" style="margin-left:0em;"> 
     23                <table border="0" cellpadding="4" cellspacing="0" summary="#{h i[:title]}" style="margin-left:0em;"> 
    2424                <tr valign="top"> 
    2525                <td style="font-size:70%;border-width:0px;"> 
    26                 <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
     26                <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{h i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
    2727                </td> 
    2828                <td width="100%" style="font-size:80%;border-width:0px;"> 
    29                 <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})</p> 
     29                <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{h i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})</p> 
    3030                <p><strong>#{i[:date][0,10]}</strong> Posted<br> 
    3131                <strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Views<br> 
  • platform/tdiary/plugin/ja/nicovideo.rb

    r15799 r33403  
    1212def nicovideo_feed( i ) 
    1313        <<-HTML 
    14                 <table border="0" cellpadding="4" cellspacing="0" summary="#{i[:title]}"><tr valign="top"> 
    15                 <td><a href="#{i[:url]}"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></td> 
    16                 <td width="100%"><a href="#{i[:url]}"><strong>#{i[:title]}</strong></a> (#{i[:length]})<br>#{i[:desc]}</td> 
     14                <table border="0" cellpadding="4" cellspacing="0" summary="#{h i[:title]}"><tr valign="top"> 
     15                <td><a href="#{i[:url]}"><img alt="#{h i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></td> 
     16                <td width="100%"><a href="#{i[:url]}"><strong>#{h i[:title]}</strong></a> (#{i[:length]})<br>#{i[:desc]}</td> 
    1717                </tr></table> 
    1818        HTML 
     
    2121def nicovideo_html( i ) 
    2222        <<-HTML 
    23                 <table border="0" cellpadding="4" cellspacing="0" summary="#{i[:title]}" style="margin-left:0em;"> 
     23                <table border="0" cellpadding="4" cellspacing="0" summary="#{h i[:title]}" style="margin-left:0em;"> 
    2424                <tr valign="top"> 
    2525                <td style="font-size:70%;border-width:0px;"> 
    26                 <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
     26                <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{h i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
    2727                <p><strong>#{i[:date][0,10]}</strong><br> 
    2828                再生: <strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong><br> 
     
    3131                </td> 
    3232                <td width="100%" style="font-size:80%;border-width:0px;"> 
    33                 <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})<br>#{i[:desc]}</p> 
     33                <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{h i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})<br>#{i[:desc]}</p> 
    3434                <div style="background:#FFF; border:solid 2px #CCC; padding:6px; margin-top:4px;"> 
    3535                <p><strong>#{i[:comment]}</strong></p> 
  • platform/tdiary/plugin/zh/nicovideo.rb

    r15799 r33403  
    1212def nicovideo_feed( i ) 
    1313        <<-HTML 
    14                 <table border="0" cellpadding="4" cellspacing="0" summary="#{i[:title]}"><tr valign="top"> 
    15                 <td><a href="#{i[:url]}"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></td> 
    16                 <td width="100%"><a href="#{i[:url]}"><strong>#{i[:title]}</strong></a> (#{i[:length]})</td> 
     14                <table border="0" cellpadding="4" cellspacing="0" summary="#{h i[:title]}"><tr valign="top"> 
     15                <td><a href="#{i[:url]}"><img alt="#{h i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></td> 
     16                <td width="100%"><a href="#{i[:url]}"><strong>#{h i[:title]}</strong></a> (#{i[:length]})</td> 
    1717                </tr></table> 
    1818        HTML 
     
    2121def nicovideo_html( i ) 
    2222        <<-HTML 
    23                 <table border="0" cellpadding="4" cellspacing="0" summary="#{i[:title]}" style="margin-left:0em;"> 
     23                <table border="0" cellpadding="4" cellspacing="0" summary="#{h i[:title]}" style="margin-left:0em;"> 
    2424                <tr valign="top"> 
    2525                <td style="font-size:70%;border-width:0px;"> 
    26                 <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
     26                <div style="margin:4px 0px;"><a href="#{i[:url]}" target="_blank"><img alt="#{h i[:title]}" src="#{i[:thumb]}" width="130" height="100" style="border:solid 1px #333;"></a></div> 
    2727                </td> 
    2828                <td width="100%" style="font-size:80%;border-width:0px;"> 
    29                 <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})</p> 
     29                <p><a href="#{i[:url]}" target="_blank" class="video"><strong>#{h i[:title]}</strong></a> (#{i[:length].split(/:/).map{|j|'%02d' % j.to_i}.join(':')})</p> 
    3030                <p><strong>#{i[:date][0,10]}</strong> Posted<br> 
    3131                <strong>#{i[:view].scan(/\d+?(?=\d{3}*$)/).join(",")}</strong> Views<br>