REXML::Document.entity_expansion_limit = 0
+libxml-ruby and hpricot don't expand entities in their default configuration.
PHP's SimpleXML API is vulnerable to quadratic entity expansion and loads
-entites from local and remote resources.
+entites from local and remote resources. The option ``LIBXML_NONET`` disables
+network access but still allows local file access. ``LIBXML_NOENT`` seems to
+have no effect on entity expansion in PHP 5.4.6.
See http://www.python.org/psf/license for licensing details.
Brett Cannon <firstname.lastname@example.org>