Escape ampersand as well
[misc/hallinta-metro] / utils.php
index d6905e9..3476ccf 100644 (file)
--- 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));
 }