Commit 6e9be8a5 authored by Jérome Perrin's avatar Jérome Perrin

patch to convert <br/> in newlines


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19462 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 244665f8
......@@ -44,6 +44,10 @@ def register():
('<script [^>]>.*</script>(?im)', ''),
('<style [^>]>.*</style>(?im)', ''),
('<head [^>]>.*</head>(?im)', ''),
# added for ERP5, we want to transform <br/> in newlines
('<br[\s\/]*>', '\n'),
('(?im)<(h[1-6r]|address|p|ul|ol|dl|pre|div|center|blockquote|form|isindex|table)(?=\W)[^>]*>', ' '),
('<[^>]*>(?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