From 41db3d89aed38e4d4802a9f9c3c03ef8b7bc5eb6 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 18 Nov 2012 14:57:10 +0000 Subject: [PATCH] Use the plain text parser to display HTML files We could display the HTML in an IFRAME but I think that's often not what people want --- core/modules/parsers/plaintextparser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/parsers/plaintextparser.js b/core/modules/parsers/plaintextparser.js index dee70daf9..422d38cfd 100644 --- a/core/modules/parsers/plaintextparser.js +++ b/core/modules/parsers/plaintextparser.js @@ -21,5 +21,6 @@ PlainTextParser.prototype.parse = function(type,text) { }; exports["text/plain"] = PlainTextParser; +exports["text/html"] = PlainTextParser; })();