Common Lisp Package: SANITIZE

README:

FUNCTION

Public

CLEAN (HTML &OPTIONAL (MODE +DEFAULT+))

Return sanitize copy of HTML

Private

Undocumented

ATTRIBUTE-ALLOWED-P (MODE TAGNAME ATTRNAME)

CLEAN-ELEMENT (ELEMENT MODE &AUX (TAGNAME (LOCAL-NAME ELEMENT)))

CLEAN-NODE (NODE MODE)

ELEMENT-ADDITIONAL-ATTRIBUTES (MODE TAGNAME)

ELEMENT-ALLOWED-P (MODE TAGNAME)

ELEMENT-PROTOCOLS (MODE TAGNAME)

WHITESPACE-ELEMENT-P (MODE TAGNAME)

MACRO

Public

Undocumented

DEFINE-SANITIZE-MODE (NAME &KEY ALLOW-COMMENTS ADD-ATTRIBUTES ATTRIBUTES ELEMENTS PROTOCOLS WHITESPACE-ELEMENTS)

WITH-CLEAN-FRAGMENT ((FRAGMENT HTML MODE) &BODY BODY)

SLOT-ACCESSOR

Private

Undocumented

MODE-ADD-ATTRIBUTES (OBJECT)

MODE-ALLOW-COMMENTS (OBJECT)

MODE-ATTRIBUTES (OBJECT)

MODE-ELEMENTS (OBJECT)

MODE-PROTOCOLS (OBJECT)

MODE-WHITESPACE-ELEMENTS (OBJECT)

VARIABLE

Public

Undocumented

+BASIC+

+DEFAULT+

+RELAXED+

+RESTRICTED+

CLASS

Public

Undocumented

SANITIZE-MODE