diff MoinMoin/wikiutil.py @ 3207:309f5570ba2b

wikiutil.escape: escapes ' too
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 06 Mar 2008 21:06:14 +0100
parents 16ae95df840a
children 0f582c5d2b9f
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Thu Mar 06 18:49:10 2008 +0100
+++ b/MoinMoin/wikiutil.py	Thu Mar 06 21:06:14 2008 +0100
@@ -249,6 +249,7 @@
     s = s.replace(">", "&gt;")
     if quote:
         s = s.replace('"', "&quot;")
+        s = s.replace("'", "&#x27;")
     return s
 
 def clean_input(text, max_len=201):