diff --git a/index.html b/index.html
index 4e710f9..0a71a8f 100644
--- a/index.html
+++ b/index.html
@@ -284,7 +284,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
<> |
+ -->
|
diff --git a/js/filters.js b/js/filters.js
index 6fe60e4..d2b0d96 100644
--- a/js/filters.js
+++ b/js/filters.js
@@ -141,6 +141,18 @@ weechat.filter('getBufferQuickKeys', function () {
};
});
+weechat.filter('escape', ['$sanitize', function($sanitize) {
+ return function(text) {
+ // manual escaping because ng-sanitize is shit
+ return text
+ .replace(/&/g, "&")
+ .replace(//g, ">")
+ .replace(/"/g, """)
+ .replace(/'/g, "'");
+ };
+}]);
+
// Emojifis the string using https://github.com/Ranks/emojione
weechat.filter('emojify', function() {
return function(text, enable_JS_Emoji) {