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 #1

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

Actions #2

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

Actions #3

Updated by Stanislas Rolland almost 19 years ago

Resolved in TYPO3 4.0

Actions

Also available in: Atom PDF