mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Fix NOQUOTES secho
This commit is contained in:
parent
b9ba793767
commit
26300ca40d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue