From 6e1f5f7b54928798d988ebd389808656d60dcee3 Mon Sep 17 00:00:00 2001 From: nikic <+@ni-po.com> Date: Sat, 11 Dec 2010 23:24:38 +0100 Subject: [PATCH] fix automatic escaping documentation --- doc/02-Twig-for-Template-Designers.markdown | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/doc/02-Twig-for-Template-Designers.markdown b/doc/02-Twig-for-Template-Designers.markdown index 2e2c5f1..dc9d53e 100644 --- a/doc/02-Twig-for-Template-Designers.markdown +++ b/doc/02-Twig-for-Template-Designers.markdown @@ -380,20 +380,11 @@ will include characters that affect the resulting HTML. There are two approaches: manually escaping each variable or automatically escaping everything by default. -Twig supports both, but what is used depends on the application configuration. -The default configuration is no automatic escaping for various reasons: - - * Escaping everything except of safe values will also mean that Twig is - escaping variables known to not include HTML such as numbers which is a - huge performance hit. - - * The information about the safety of a variable is very fragile. It could - happen that by coercing safe and unsafe values the return value is double - escaped HTML. +Twig supports both, automatic escaping is enabled by default. >**NOTE** ->Escaping is only supported if the *escaper* extension has been enabled (which ->is the default). +>Automatic escaping is only supported if the *escaper* extension +>has been enabled (which is the default). ### Working with Manual Escaping -- 1.7.2.5