Commit 3482561c authored by Jérome Perrin's avatar Jérome Perrin

Use case insensitive regexp to replace <br/>


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19473 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ca866f8
...@@ -46,7 +46,7 @@ def register(): ...@@ -46,7 +46,7 @@ def register():
('<head [^>]>.*</head>(?im)', ''), ('<head [^>]>.*</head>(?im)', ''),
# added for ERP5, we want to transform <br/> in newlines # added for ERP5, we want to transform <br/> in newlines
('<br[\s\/]*>', '\n'), ('<br[\s\/]*>(?im)', '\n'),
('(?im)<(h[1-6r]|address|p|ul|ol|dl|pre|div|center|blockquote|form|isindex|table)(?=\W)[^>]*>', ' '), ('(?im)<(h[1-6r]|address|p|ul|ol|dl|pre|div|center|blockquote|form|isindex|table)(?=\W)[^>]*>', ' '),
('<[^>]*>(?i)(?m)', ''), ('<[^>]*>(?i)(?m)', ''),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment