Fix NOQUOTES secho

This commit is contained in:
Pierre-Lin Bonnemaison 2015-09-28 23:56:21 +02:00
parent 8925c2c228
commit 965c62dbe5
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
function secho($text, $nl2br = true, $escapeQuotes = true, $echo = true)
{
//On echappe le html, potentiellement avec les quotes
$text = $escapeQuotes ? htmlspecialchars($text, ENT_QUOTES) : htmlspecialchars($text);
$text = $escapeQuotes ? htmlspecialchars($text, ENT_QUOTES) : htmlspecialchars($text, ENT_NOQUOTES);
//On transforme les "\n" en <br/>
$text = $nl2br ? nl2br($text) : $text;