Bug #15221
closedFunction HTMLcleaner_db of class t3lib_parseHTML_proc ignores xhtml_cleaning property
0%
Description
Function HTMLcleaner_db of class t3lib_parseHTML_proc ignores setting RTE.default.proc.HTMLparser_db.xhtml_cleaning=1
As a result, for example, br tags are stored in the database as <br> rather than <br />.
Line:
return $this->HTMLcleaner($content,$keepTags,$kUknown,$hSC);
should be replaced with the following:
// Create additional configuration:
$addConfig=array();
if (is_array($this->procOptions['entryHTMLparser_db.']) && $this->procOptions['entryHTMLparser_db.']['xhtml_cleaning']) {
$addConfig['xhtml']=1;
}
return $this->HTMLcleaner($content,$keepTags,$kUknown,$hSC,$addConfig);
(issue imported from #M1901)
Updated by Sebastian Kurfuerst about 19 years ago
Hi,
the xhtml_cleaning property is experimental AFAIK and will become deprecated when the core is xhtml-compliant.
Thus, there won't be too much work invested in anything related to xhtml_cleaning I think.
Greets, Sebastian
Updated by Stanislas Rolland about 19 years ago
I understand your point. However, In the case of RTE's, html text from other sources such as Open Office or MS Office documents may be pasted in. The resulting code would probably always need to be cleaned. I think that it would be better to clean it before entering the database, rather than at rendering time.
Regards,
Stanislas