mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-06 15:50:58 +00:00
added quote_val
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2811 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
a74e728246
commit
712df7d743
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue