Skip to content

Commit 9eedf4b

Browse files
committed
fix: output of liberator.log(object) contains HTML tags.
1 parent 9c14532 commit 9eedf4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/content/liberator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,9 @@ const Liberator = Module("liberator", {
690690
*/
691691
log: function (msg) {
692692
if (typeof msg == "object")
693-
msg = util.objectToString(msg, false);
693+
msg = Cc["@mozilla.org/feed-unescapehtml;1"]
694+
.getService(Ci.nsIScriptableUnescapeHTML)
695+
.unescape(util.objectToString(msg, false));
694696

695697
services.get("console").logStringMessage(config.name.toLowerCase() + ": " + msg);
696698
},

0 commit comments

Comments
 (0)