From 7b260f7b83b3fcc3ca1f84513f06923845f0464d Mon Sep 17 00:00:00 2001 From: mohrt Date: Wed, 9 Jun 2004 14:54:31 +0000 Subject: [PATCH] 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