The options optTagPosition and optTagWarning specify whether to generate
TagPosition or TagWarning elements respectively. Usually these options should be set to False
to simplify future stages, unless you rely on position information or want to give malformed HTML
messages to the end user.

The options optEntityData and optEntityAttrib control how entities, for example &nbsp; are handled.
Both take a string, and a boolean, where True indicates that the entity ended with a semi-colon ;.
Inside normal text optEntityData will be called, and the results will be inserted in the tag stream.
Inside a tag attribute optEntityAttrib will be called, and the first component of the result will be used
in the attribute, and the second component will be appended after the TagOpen value (usually the second
component is []). As an example, to not decode any entities, pass: