Skip to content

Commit

Permalink
ENT_SUBSTITUTE is defined since php 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pine3ree authored Jun 13, 2023
1 parent ec07462 commit 90984a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Template/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ public function escape($string, $functions = null)
static $flags;

if (!isset($flags)) {
$flags = ENT_QUOTES | (defined('ENT_SUBSTITUTE') ? ENT_SUBSTITUTE : 0);
$flags = ENT_QUOTES | ENT_SUBSTITUTE;
}

if ($functions) {
Expand Down

0 comments on commit 90984a0

Please sign in to comment.