Common Lisp Package: HTML-ENTITIES

Main package for html-entities.

README:

FUNCTION

Public

DECODE-ENTITIES (HTML)

Decodes all entites in HTML.

ENCODE-ENTITIES (HTML &KEY (REGEX *ESCAPE-ALL*))

Encodes entites in HTML. Defaults to pretty much everything you can, but you can pass a regex like "[<>&\"]" to only encode the basics.

Undocumented

CHAR-OF-NAME (NAME)

CHAR-TO-ENTITY (CHAR-OR-STRING)

ENTITY-TO-CHAR (STRING)

NAME-OF-CHAR (CHAR)

Private

Undocumented

INIT-HASHES

VARIABLE

Public

*ENABLE-SGML*

Encode and decode using SGML entity names, of which HTML entity names are almost a subset (&apos; is different).

*ENCODE-IN-HEXADECIMAL*

When a symbolic name is not available, use hexadecimal-based integers: &#xE1; instead of &#225; .

*ENCODE-USING-NAMED-ENTITIES*

Use symbolic names, such as &aacute; , rather than &#225; or &#xE1; .

Private

Undocumented

*CHAR-TO-NAME*

*ENTITY-DEFINITIONS*

*ESCAPE-ALL*

*NAME-TO-CHAR*

*SGML-CHAR-TO-NAME*

*SGML-ENTITY-DEFINITIONS*

*SGML-NAME-TO-CHAR*