diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index 81145ab8f41e..d57c49817f0c 100755 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -568,15 +568,16 @@ function dd(...$args) * Escape HTML special characters in a string. * * @param \Illuminate\Contracts\Support\Htmlable|string $value + * @param bool $doubleEncode * @return string */ - function e($value) + function e($value, $doubleEncode = false) { if ($value instanceof Htmlable) { return $value->toHtml(); } - return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', false); + return htmlspecialchars($value, ENT_QUOTES, 'UTF-8', $doubleEncode); } }