2
0
forked from Wavyzz/dolibarr

Removed deprecated code

This commit is contained in:
Laurent Destailleur
2009-01-28 09:00:29 +00:00
parent e817b6891b
commit 569316d3bd
14 changed files with 94 additions and 145 deletions

View File

@@ -158,6 +158,18 @@ function dol_escape_js($stringtoescape)
}
/**
* \brief Returns text escaped for inclusion in javascript code
* \param $stringtoescape String to escape
* \return string Escaped string
*/
function dol_escape_htmltag($stringtoescape)
{
// escape quotes and backslashes, newlines, etc.
return strtr($stringtoescape, array('"'=>'',"\r"=>'\\r',"\n"=>'\\n'));
}
/* For backward compatiblity */
function dolibarr_syslog($message, $level=LOG_INFO)
{