[TYPO3-core] RFC: Bug 1030, 277, 1472 possibly 1270
René Fritz
rene at typo3.org
Thu Feb 9 17:27:48 CET 2006
... an addition
function quoteJSvalue($value, $inScriptTags = false) {
$value = addcslashes($value, '\''.chr(10).chr(13));
if (!$inScriptTags) {
$value = htmlspecialchars($value);
}
return '\''.$value.'\'';
}
I don't like the $inScriptTags parameter very much
In typo3 the concept is to htmlspecialchars() right before the output and not
inside a function. I would just remove that.
René
--
René Fritz
TYPO3 Association - Active Member
http://association.typo3.org/
More information about the TYPO3-team-core
mailing list