Changeset 1271
- Timestamp:
- Apr 25, 2006, 10:36:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/include/functions_html.inc.php
r1260 r1271 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.