diff --git a/core/modules/parsers/htmlparser.js b/core/modules/parsers/htmlparser.js new file mode 100644 index 000000000..7045c7f44 --- /dev/null +++ b/core/modules/parsers/htmlparser.js @@ -0,0 +1,25 @@ +/*\ +title: $:/core/modules/parsers/htmlparser.js +type: application/javascript +module-type: parser + +The HTML parser displays text as raw HTML + +\*/ +(function(){ + +/*jslint node: true, browser: true */ +/*global $tw: false */ +"use strict"; + +var HtmlParser = function(type,text,options) { + this.tree = [{ + type: "raw", + html: text + }]; +}; + +exports["text/html"] = HtmlParser; + +})(); + diff --git a/core/modules/parsers/textparser.js b/core/modules/parsers/textparser.js index bf4b987c3..9605dfba0 100644 --- a/core/modules/parsers/textparser.js +++ b/core/modules/parsers/textparser.js @@ -24,7 +24,6 @@ var TextParser = function(type,text,options) { }; exports["text/plain"] = TextParser; -exports["text/html"] = TextParser; exports["application/vnd.tiddlywiki2"] = TextParser; exports["application/javascript"] = TextParser; exports["application/json"] = TextParser;