diff --git a/WikiExtractor.py b/WikiExtractor.py index 16287be..15a62bc 100755 --- a/WikiExtractor.py +++ b/WikiExtractor.py @@ -808,7 +808,7 @@ class Extractor(object): text = text.replace('|-', '') text = text.replace('|', '') if options.toHTML: - text = cgi.escape(text) + text = html.escape(text) return text