summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-29 18:33:07 -0800
committerPixel <pixel@nobis-crew.org>2011-11-29 18:33:07 -0800
commit79b55693014230053ffbdb1bd3ad7d13a6e2383a (patch)
tree3725ac63d62a7a09e19dc70878a628db609d224b /src
parente5cfc02faa8994b8eae51590cda626a26fa9da24 (diff)
Fixing Mustache's escaping (again).
Diffstat (limited to 'src')
-rw-r--r--src/SimpleMustache.cc6
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 '\\':