

In order for your filter to know the current auto-escaping state, set the

Order to make things easier for your template authors. The idea is to write filters thatĬan operate in templates where auto-escaping is either on or off in You need to ensure it really is safe, and what you do depends on You need to do more than just mark the output as You want to mark the output as safe from furtherĮscaping so that your HTML markup isn’t escaped further, so you’ll needīe careful, though. This is necessary when you’re introducing new HTML markup into
#Simpletag dropbox code#
Value, marking it is_safe will probably have unintendedĬonsequences (such as converting a boolean False to the stringĪlternatively, your filter code can manually take care of any necessaryĮscaping. If your filter should return a boolean or other non-string Marking a filter is_safe will coerce the filter’s return value toĪ string. This tricky, but keep an eye out for any problems like that when Valid entity and thus needs further escaping. Semicolon ( ) can turn & into &, which is no longer a > from the input might turn into