Changeset 1271


Ignore:
Timestamp:
Apr 25, 2006, 10:36:56 PM (19 years ago)
Author:
chrisaga
Message:

bug 351 fixed : htmlentities() on comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/functions_html.inc.php

    r1260 r1271  
    480480function parse_comment_content($content)
    481481{
     482  htmlentities($content,ENT_QUOTES);
    482483  $pattern = '/(https?:\/\/\S*)/';
    483484  $replacement = '<a href="$1" rel="nofollow">$1</a>';
     
    501502  $content = preg_replace($pattern, $replacement, $content);
    502503
    503   $content = '<div>'.htmlentities($content,ENT_QUOTES).'</div>';
     504  $content = '<div>'.$content.'</div>';
    504505  return $content;
    505506}
Note: See TracChangeset for help on using the changeset viewer.