From: Joey Schulze Date: Fri, 23 Mar 2012 20:15:41 +0000 (+0100) Subject: Escape ampersand as well X-Git-Url: https://git.infodrom.org/?p=misc%2Fhallinta-metro;a=commitdiff_plain;h=92b7c0fbb1f65e22f5d07c9669829a6efe22d372 Escape ampersand as well --- diff --git a/utils.php b/utils.php index d6905e9..3476ccf 100644 --- a/utils.php +++ b/utils.php @@ -24,8 +24,8 @@ function rm_tempdir($dir) function latex_encode($text) { - return str_replace(array("\\",'%'), - array('\\','\%'), + return str_replace(array("\\",'%','&'), + array('\\','\%','\&'), utf8_decode($text)); }