From 1578aa09205792da4774289a0a47f29b78e65d3f Mon Sep 17 00:00:00 2001 From: Martin Ellis Date: Tue, 12 Jun 2012 16:25:02 +0100 Subject: [PATCH] Escape apostrophe's using entity number (') rather than name ('). The ' entity is an XML entity, rather than an HTML entity, and is not supported by Internet Explorer. The numeric form is supported in both XML and HTML. --- src/main/java/com/samskivert/mustache/Mustache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/mustache/Mustache.java b/src/main/java/com/samskivert/mustache/Mustache.java index 9c5ebdf..463946a 100644 --- a/src/main/java/com/samskivert/mustache/Mustache.java +++ b/src/main/java/com/samskivert/mustache/Mustache.java @@ -640,7 +640,7 @@ public class Mustache * need to be applied in order so amps are not double escaped.) */ protected static final String[][] ATTR_ESCAPES = { { "&", "&" }, - { "'", "'" }, + { "'", "'" }, { "\"", """ }, { "<", "<" }, { ">", ">" },