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

Ingmar Schlecht ingmar at typo3.org
Sat Jan 27 17:26:40 CET 2007


Hi Dmitry,

Dmitry Dulepov wrote:
> This is SVN patch request.
> 
> Branch: trunk (for 4.1!)
> 
> Problem: if there are large block of HTML that should go to XML crated
> by t3lib_div::xml2array(), all < and > will be converted to &lt; and
> &gt; thus making later manual editing very inconvenient.
> 
> Solution: enable CDATA usage in xml2array through options. If option is
> not specified, behavior does not change. array2xml parses CDATA perfectly.
> 
> This patch is mainly made to simplify life for templavoila users, who
> often ask for it. It is pretty simple.

1.) What if $v itself contains the string "]]>"? Is there any standard
conforming way to escape that?

2.) Please write
	} elseif {
instead of
	}
	else if (

Apart from that, +1 by reading the patch.

cheers
Ingmar


More information about the TYPO3-team-core mailing list