Fabien Potencier 453c3e8b00 added better support for encoding problems when escaping a string (available as of PHP 5.4)
From the PHP CHANGELOG:

The flag ENT_SUBSTITUTE makes invalid multibyte sequences be replaced by
U+FFFD (UTF-8) or &#FFFD; by htmlspecialchars and htmlentities. It is an
alternative to the default behavior, which just returns an empty string and to
ENT_IGNORE, which is a security risk. The behavior follows the recommendations
of Unicode Technical Report #36.
2011-08-30 07:38:41 +02:00
2010-05-11 10:38:48 +02:00
2011-08-28 09:12:46 +02:00
2009-10-07 21:21:11 +00:00
2009-10-07 21:21:11 +00:00
2009-10-12 07:05:31 +00:00
2009-10-07 21:21:11 +00:00

Twig, the flexible, fast, and secure template language for PHP

Twig is a template language for PHP, released under the new BSD license (code and documentation).

Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment.

Languages
PHP 99.9%