Topics

Escaping

ImpressPages has the following functions to escape the content, thus making your plugin or theme output more secure:

Translation functions (__ and _e) automatically escape the output. This can be controlled using third parameter which can accept following values:

  • false - avoids escaping,
  • 'html' - default HTML mode,
  • 'attr' - HTML attribute,
  • 'textarea' - HTML textarea tag content.

See also

comments powered by Disqus