mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
Internal: fixed typo in utils::TextToHtml()
SVN:trunk[3986]
This commit is contained in:
@@ -1173,7 +1173,7 @@ class utils
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert (?) plain text to some HTML markup by replacing newlines by </br> tags
|
||||
* Convert (?) plain text to some HTML markup by replacing newlines by <br/> tags
|
||||
* and escaping HTML entities
|
||||
* @param string $sText
|
||||
* @return string
|
||||
@@ -1182,6 +1182,6 @@ class utils
|
||||
{
|
||||
$sText = str_replace("\r\n", "\n", $sText);
|
||||
$sText = str_replace("\r", "\n", $sText);
|
||||
return str_replace("\n", '</br>', htmlentities($sText, ENT_QUOTES, 'UTF-8'));
|
||||
return str_replace("\n", '<br/>', htmlentities($sText, ENT_QUOTES, 'UTF-8'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user