From b075eb8e61858d861d45309a676c09c0ff232ca2 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Fri, 27 Nov 2009 02:15:09 +0000 Subject: [PATCH] user profiles MDL-16213 prevent ul tags in user profiles leading to invalid xhtml --- lib/weblib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 69dc1f0563..37c148f505 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1580,7 +1580,7 @@ function get_emoticons_list_for_help_file() { * @global object * @param string $text The string to convert. * @param boolean $smiley Convert any smiley characters to smiley images? - * @param boolean $para If true then the returned string will be wrapped in paragraph tags + * @param boolean $para If true then the returned string will be wrapped in div tags * @param boolean $newlines If true then lines newline breaks will be converted to HTML newline breaks. * @return string */ @@ -1609,9 +1609,10 @@ function text_to_html($text, $smiley=true, $para=true, $newlines=true) { replace_smilies($text); } -/// Wrap the whole thing in a paragraph tag if required +/// Wrap the whole thing in a div if required if ($para) { - return '

'.$text.'

'; + //return '

'.$text.'

'; //1.9 version + return '
'.$text.'
'; } else { return $text; } -- 2.39.5