Skip to main content

xmlParserOption_XML_PARSE_NOENT

Constant xmlParserOption_XML_PARSE_NOENT 

Source
pub const xmlParserOption_XML_PARSE_NOENT: xmlParserOption = 2;
Expand description

Despite the confusing name, this option enables substitution of entities. The resulting tree won’t contain any entity reference nodes.

This option also enables loading of external entities (both general and parameter entities) which is dangerous. If you process untrusted data, it’s recommended to set the XML_PARSE_NO_XXE option to disable loading of external entities.