summaryrefslogtreecommitdiff
path: root/app/Core/Translator.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Translator.php')
-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);