diff options
-rw-r--r-- | src/SimpleMustache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SimpleMustache.cc b/src/SimpleMustache.cc index 674cf71..97f8faa 100644 --- a/src/SimpleMustache.cc +++ b/src/SimpleMustache.cc @@ -477,8 +477,8 @@ Balau::String Balau::SimpleMustache::escape(const String & s) { for (int i = 0; i < s.strlen(); i++) { switch (s[i]) { - case '%': - *p++ = '%'; + case '&': + *p++ = '&'; *p++ = 'a'; *p++ = 'm'; *p++ = 'p'; @@ -496,7 +496,7 @@ Balau::String Balau::SimpleMustache::escape(const String & s) { *p++ = '&'; *p++ = '#'; *p++ = '3'; - *p++ = '5'; + *p++ = '9'; *p++ = ';'; break; case '\\': |