Index: cms/converters.py |
=================================================================== |
--- a/cms/converters.py |
+++ b/cms/converters.py |
@@ -326,9 +326,9 @@ |
return ''.join((pre, jinja2.Markup.escape(url), post)) |
- text = re.sub(r'(<a\s[^<>]*\b(href)=\")([^<>\"]+)(\")', |
+ text = re.sub(r'(<[\w]+\s[^<>]*\b(href)=\")([^<>\"]+)(\")', |
Vasily Kuznetsov
2019/01/04 20:16:56
Perhaps at this point it makes sense to combine th
rhowell
2019/01/07 22:25:06
Good idea, done.
|
process_link, text) |
- text = re.sub(r'(<img\s[^<>]*\b(src)=\")([^<>\"]+)(\")', |
+ text = re.sub(r'(<[\w]+\s[^<>]*\b(src)=\")([^<>\"]+)(\")', |
process_link, text) |
return text |