Possible fix for JavaScript templates #2
[mailer.git] / inc / wrapper-functions.php
index 64ac4a9660af8fd81e9d710b354aabeb447ae24e..13a0fce739768900e76644b92ae6df18134708f4 100644 (file)
@@ -138,9 +138,9 @@ function decodeString ($str, $decompress = true) {
 }
 
 // Decode entities in a nicer way
-function decodeEntities ($str) {
+function decodeEntities ($str, $quote = ENT_NOQUOTES) {
        // Decode the entities to UTF-8 now
-       $decodedString = html_entity_decode($str, ENT_NOQUOTES, 'UTF-8');
+       $decodedString = html_entity_decode($str, $quote, 'UTF-8');
 
        // Return decoded string
        return $decodedString;