Package-level declarations

Types

Link copied to clipboard

Disallowed tags modes.

Link copied to clipboard
data class SanitizeHtmlOptions(    val allowedTags: List<String>? = null,     val allowAllTags: Boolean = false,     val allowedAttributes: Map<String, List<String>>? = null,     val allowAllAttributes: Boolean = false,     val nonBooleanAttributes: List<String>? = null,     val disallowedTagsMode: DisallowedTagsMode? = null,     val selfClosing: List<String>? = null,     val allowedSchemes: List<String>? = null,     val allowedSchemesByTag: Map<String, List<String>>? = null,     val allowedSchemesAppliedToAttributes: List<String>? = null,     val allowProtocolRelative: Boolean? = null,     val enforceHtmlBoundary: Boolean? = null,     val parseStyleAttributes: Boolean? = null,     val parser: JsAny? = null,     val allowedClasses: Map<String, List<String>>? = null,     val allowedStyles: Map<String, Map<String, RegExp>>? = null,     val transformTags: Map<String, JsAny>? = null,     val nonTextTags: List<String>? = null,     val nestingLimit: Int? = null)

Sanitize HTML options.

Functions

Link copied to clipboard
fun sanitizeHtml(text: String, options: SanitizeHtmlOptions = SanitizeHtmlOptions()): String

Sanitize HTML code.