diff --git a/src/utils/text2html.py b/src/utils/text2html.py
index ca60a77e66..9425222a2d 100644
--- a/src/utils/text2html.py
+++ b/src/utils/text2html.py
@@ -113,7 +113,7 @@ class TextToHTMLparser(object):
def convert_urls(self, text):
"Replace urls (http://...) by valid HTML"
- regexp = r"((ftp|www|http)(\W+\S+[^).,:;?\]\}(\) \r\n$]+))"
+ regexp = r"((ftp|www|http)(\W+\S+[^).,:;?\]\}(\) \r\n$\"\']+))"
# -> added target to output prevent the web browser from attempting to
# change pages (and losing our webclient session).
return re.sub(regexp, r'\1', text)