Changeset 1272
- Timestamp:
- Apr 25, 2006, 10:38:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r1259 r1272 480 480 function parse_comment_content($content) 481 481 { 482 htmlentities($content,ENT_QUOTES); 482 483 $pattern = '/(https?:\/\/\S*)/'; 483 484 $replacement = '<a href="$1" rel="nofollow">$1</a>'; … … 501 502 $content = preg_replace($pattern, $replacement, $content); 502 503 503 $content = '<div>'. htmlentities($content,ENT_QUOTES).'</div>';504 $content = '<div>'.$content.'</div>'; 504 505 return $content; 505 506 }
Note: See TracChangeset
for help on using the changeset viewer.