You are here

private function ExceptionHandler::escapeHtml in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/debug/ExceptionHandler.php \Symfony\Component\Debug\ExceptionHandler::escapeHtml()

HTML-encodes a string.

3 calls to ExceptionHandler::escapeHtml()
ExceptionHandler::formatArgs in vendor/symfony/debug/ExceptionHandler.php
Formats an array as a string.
ExceptionHandler::formatPath in vendor/symfony/debug/ExceptionHandler.php
ExceptionHandler::getContent in vendor/symfony/debug/ExceptionHandler.php
Gets the HTML content associated with the given exception.

File

vendor/symfony/debug/ExceptionHandler.php, line 442

Class

ExceptionHandler
ExceptionHandler converts an exception to a Response object.

Namespace

Symfony\Component\Debug

Code

private function escapeHtml($str) {
  return htmlspecialchars($str, ENT_QUOTES | (PHP_VERSION_ID >= 50400 ? ENT_SUBSTITUTE : 0), $this->charset);
}