From 92b7c0fbb1f65e22f5d07c9669829a6efe22d372 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Fri, 23 Mar 2012 21:15:41 +0100 Subject: [PATCH] Escape ampersand as well --- utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } -- 2.20.1