Kaya 0.5.2 reference for HTMLDocument::WhiteList

List of functions and data types in HTMLDocument

HTMLDocument::WhiteList

Constructors

Usage

When converting from a String to HTML, rather than simply adding a String to an existing element where it will be escaped, the elements allowed in the conversion should depend on how trustworthy the String is. Generally, any unauthenticated user-supplied data should be treated extremely cautiously, and even authenticated user-supplied data should be treated with some caution in case the authentication is broken.

Use of String to HTML conversion allows potential for cross-site scripting attacks against your application, especially if the allowed element list is generous.

For the InlineOnly and AllElements options, you also need to select a ConversionSafety.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya