preserve already correctly quoted single quotes

This commit is contained in:
Ralf Becker 2006-10-22 11:35:58 +00:00
parent 01461852ed
commit 4731a59075

View File

@ -97,7 +97,7 @@
{
if (!empty($this->body[$what]))
{
$js .= ' '.$what.'="' . str_replace(array('"','\\'),array('\\"','\\\\'),$this->body[$what]) . '"';
$js .= ' '.$what.'="' . str_replace(array('\\\'','"','\\','''),array(''','\\"','\\\\','\\\''),$this->body[$what]) . '"';
}
}
return $js;