Search code examples
xml-parsingcrystal-lang

What does the XML and HTML parser option, NONET = 2048, do or mean?


In the Crystal standard library, the HTML and XML parser options both have NONET. What does this option do to modify XML.parse/XML.parse_html parsing?


Solution

  • It disables any network connections while parsing, for example connecting to the internet to retrieve XML DTDs.