Show
Ignore:
Timestamp:
08/29/08 17:23:40 (3 months ago)
Author:
mattn
Message:

一応エスケープ

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/userscripts/show-delicious-comment-if-hatena-bookmark-comment-is-disabled.user.js

    r18426 r18432  
    243243                                                        html += '<a href="/' + user + '/' + encodeURIComponent(tag) + '/" rel="tag" class="user-tag">' + tag + '</a> '; 
    244244                                                } 
    245                                                 html += '</span> ' + comment + '</li>'; 
     245                                                html += '</span> ' + comment.replace(/</g, '&lt;').replace(/>/g, '&gt;') + '</li>'; 
    246246                                        } 
    247247                                        document.getElementById('bookmarked_user').innerHTML = html;