[TYPO3-core] RFC: enable CDATA creation in t3lib_div::xml2array()

Dmitry Dulepov dmitry at typo3.org
Sat Jan 27 19:04:14 CET 2007


Hi!

Martin Kutschker wrote:
> Ingmar Schlecht schrieb:
>> 1.) What if $v itself contains the string "]]>"? Is there any standard
>> conforming way to escape that?
 >
> I think we can ignore the situation and add to the function specs that 
> $useCDATA forbids the character sequences <![CDATA[ and ]]>.

Yes. This common situation. Even if later anyone complains (which is 
unlikely, see below), we always can do this

if (!strstr($v, ']]>') && $option['useCDATA'] ....

but I am sure this is not necessary *now* because those who decide to 
edit xml manually are generally aware about rules.

Change committed to trunk.

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)


More information about the TYPO3-team-core mailing list