Commit 4ff1847a authored by Nicolas Delaby's avatar Nicolas Delaby

safe_html will be also used to output Entire HTML,

so remove bodyfinder, to handle whole document.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34182 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 91f179d6
......@@ -7,7 +7,6 @@ from zope.interface import implements
from Products.PortalTransforms.interfaces import itransform
from Products.PortalTransforms.utils import log
from Products.CMFDefault.utils import bodyfinder
from Products.CMFDefault.utils import IllegalHTML
from Products.CMFDefault.utils import SimpleHTMLParser
from Products.CMFDefault.utils import VALID_TAGS
......@@ -266,7 +265,7 @@ class SafeHTML:
while True:
try:
safe = scrubHTML(
bodyfinder(html_string),
html_string,
valid=self.config.get('valid_tags', {}),
nasty=self.config.get('nasty_tags', {}),
remove_javascript=self.config.get('remove_javascript', True),
......
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