diff --git a/NEWS b/NEWS index a6efb6b2..e72af752 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + - added escapement of ''\\\\',"'"=>"\\'",'"'=>'\\"',"\r"=>'\\r',"\n"=>'\\n')); + // escape quotes and backslashes, newlines, etc. + return strtr($string, array('\\'=>'\\\\',"'"=>"\\'",'"'=>'\\"',"\r"=>'\\r',"\n"=>'\\n',''<\/')); case 'mail': // safe way to display e-mail address on a web page