From 41704d1daaf2adb1c87678476bea739e1b2091c5 Mon Sep 17 00:00:00 2001 From: Samantha Adrichem Date: Tue, 20 Sep 2016 09:00:10 +0200 Subject: [PATCH] #301 When fetching a string, you should also check for HTML modified --- src/catalog.js | 3 +++ 1 file changed, 3 insertions(+) mode change 100644 => 100755 src/catalog.js diff --git a/src/catalog.js b/src/catalog.js old mode 100644 new mode 100755 index fbc3688..87b689e --- a/src/catalog.js +++ b/src/catalog.js @@ -210,6 +210,9 @@ angular.module('gettext').factory('gettextCatalog', function (gettextPlurals, ge if (!language) { return null; } + if (isHTMLModified) { + string = angular.element( '' + string + '' ).html() + } var stringTable = this.strings[language] || {}; var contexts = stringTable[string] || {}; var plurals = contexts[context || noContext] || [];