From 965c62dbe5b09bbdf996b976085ff81dd2432130 Mon Sep 17 00:00:00 2001 From: Pierre-Lin Bonnemaison Date: Mon, 28 Sep 2015 23:56:21 +0200 Subject: [PATCH] Fix NOQUOTES secho --- mvc/secho.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvc/secho.php b/mvc/secho.php index d76a81e..f49df58 100755 --- a/mvc/secho.php +++ b/mvc/secho.php @@ -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
$text = $nl2br ? nl2br($text) : $text;