Project

General

Profile

Actions

Bug #15221

closed

Function HTMLcleaner_db of class t3lib_parseHTML_proc ignores xhtml_cleaning property

Added by Stanislas Rolland about 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-11-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions

Also available in: Atom PDF