Project

General

Profile

Actions

Bug #27331

closed

htmlSpecialChars und TS-Menu-Wrap

Added by lygie no-lastname-given about 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-06-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hallo,

When I add a wrap to a TS-Menu like this

stdWrap.cObject = COA
stdWrap.cObject {
5 = TEXT
5 {
field = subtitle
wrap = <span>|</span>
if.isTrue.data = field:subtitle
}
}

i cannot see any possibility to get htmlSpecialChars = 0 to work. The result is, that the span tag is rendered to "<span"

I think, that happens when there is a "htmlSpecialChars." Element, that has Child-Elements link htmlSpecialChars.preserveEntities. No matter if htmlSpecialChars.preserveEntities is set to 1 or 0.

In this case the function-Type becomes "array" after being parsed by array_intersect_key in typo3/sysext/cms/tslib/class.tslib_content.php where it should be "boolean"

If I add "if(!($functionName=="htmlSpecialChars") || !($functionType=="array")){" in line 2048 of typo3/sysext/cms/tslib/class.tslib_content.php everything is fine.

Is there any proper solution to this problem.

Actions

Also available in: Atom PDF