Prechádzať zdrojové kódy

Internal: fixed typo in utils::TextToHtml()

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3986 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 rokov pred
rodič
commit
7dd5aa5505
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      application/utils.inc.php

+ 2 - 2
application/utils.inc.php

@@ -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'));
 	}
 }