diff --git a/linkcheck/HtmlParser/htmllib.py b/linkcheck/HtmlParser/htmllib.py index a9a7ea59..59551969 100644 --- a/linkcheck/HtmlParser/htmllib.py +++ b/linkcheck/HtmlParser/htmllib.py @@ -243,3 +243,10 @@ def quote_attrval (s): s = s.replace('&', "&") s = s.replace('"', """) return s + + +def quote_val (s): + s = s.replace('&', "&") + s = s.replace('<', "<") + s = s.replace('>', ">") + return s