diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 21784654b..00acd0018 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -479,6 +479,7 @@ function get_html_menu_category($categories) */ function parse_comment_content($content) { + htmlentities($content,ENT_QUOTES); $pattern = '/(https?:\/\/\S*)/'; $replacement = '$1'; $content = preg_replace($pattern, $replacement, $content); @@ -500,7 +501,7 @@ function parse_comment_content($content) $replacement = '$1$2'; $content = preg_replace($pattern, $replacement, $content); - $content = '
'.htmlentities($content,ENT_QUOTES).'
'; + $content = '
'.$content.'
'; return $content; }