mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-06 01:56:20 +00:00
26 lines
379 B
JavaScript
26 lines
379 B
JavaScript
|
/*\
|
||
|
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;
|
||
|
|
||
|
})();
|
||
|
|