summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-08-17 09:15:38 -0700
committerFrédéric Guillot <fred@kanboard.net>2014-08-17 09:15:38 -0700
commit44e91721b0edec28b4e37d3c6b8847854c108233 (patch)
treefe7c34e6a2395bb1ea1c9a597278d1b2aa03ac10 /app/Core
parent658123a2328867a87da59ca660a7044d99eea22c (diff)
Fix encoding issue in mail subject
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Translator.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Core/Translator.php b/app/Core/Translator.php
index 14a2d372..c34a40ba 100644
--- a/app/Core/Translator.php
+++ b/app/Core/Translator.php
@@ -47,6 +47,17 @@ class Translator
}
/**
+ * Enable HTML escaping for translations
+ *
+ * @static
+ * @access public
+ */
+ public static function enableEscaping()
+ {
+ self::$enable_escaping = true;
+ }
+
+ /**
* Get a translation
*
* $translator->translate('I have %d kids', 5);