[TYPO3] Cleanup unset markers
Marek Matis
marek.matis at gmail.com
Wed Jul 4 10:30:12 CEST 2007
Hi Folks,
do you now, how to cleanup unset markers?
Example:
..
$substArray = array();
$datarowcontent = '<input type="text" name="surname" value="###NAME###" />';
$content =
$this->cObj->substituteMarkerArrayCached($datarowcontent,$substArray);
echo $content;
..
Output:
<input type="text" name="surname" value="###NAME###" />
I need output:
<input type="text" name="surname" value="" />
Of course I can use e.g. "$content = preg_replace ('/###[\w]+###/',
$content); " but...
Thanks.
Marek
More information about the TYPO3-english
mailing list