/* Functions concerned with parsing representations of tiddlers */ var argParser = require("./ArgParser.js"), utils = require("./Utils.js"); var tiddlerOutput = exports; /* Output a tiddler as an HTML
tag and the text */ tiddlerOutput.outputTiddlerDiv = function(out,tid) { var result = []; var outputAttribute = function(name,value) { result.push(" " + name + "=\"" + value + "\""); }; result.push("\n"); out.push(result.join("")); } tiddlerOutput.stringifyTags = function(tags) { var results = []; for(var t=0; t\n"); result.push(utils.htmlEncode(tid.fields.text)); result.push("\n