mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
update functions for XHTML compatability
This commit is contained in:
@@ -89,7 +89,7 @@ function smarty_function_mailto($params, &$smarty)
|
||||
$js_encode .= '%' . bin2hex($string[$x]);
|
||||
}
|
||||
|
||||
return '<SCRIPT language="javascript">eval(unescape(\''.$js_encode.'\'))</SCRIPT>';
|
||||
return '<script type="text/javascript" language="javascript">eval(unescape(\''.$js_encode.'\'))</script>';
|
||||
|
||||
} elseif ($encode == 'hex') {
|
||||
|
||||
|
@@ -17,7 +17,7 @@ function smarty_function_popup($params, &$smarty)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (empty($trigger)) { $trigger = "onMouseOver"; }
|
||||
if (empty($trigger)) { $trigger = "onmouseover"; }
|
||||
|
||||
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
|
||||
if ($sticky) { $retval .= ",STICKY"; }
|
||||
|
Reference in New Issue
Block a user