rem: line = line.escapeHTML() 
context: OSDoc.APIDoc.Definition.prototype.addDescriptionLine = function(line) {    var blocks = this.blocks;    var block = this.block;    var self = this;    var rules =        [[/\s*::\s*(.*)/, type],         [/^>>\s*(.*)/, output],         [/^==\s*(.*)/, defn],         [/^\s+(.*)/, indented],         [/^\s*$/, endParagraph],         [/(.*)/, para]];    for (var i = 0; i < rules.length; i++) {        var item = rules[i];        var match;        if (match = line.match(item[0])) {            item[1].apply(this, [].slice.call(match, 1));            break;        }    }        // line type handlers (some also add)    function type(text) {        this.signature = text;    }    function output(text) {        endParagraph();        var match = text.match(/\s*(.*)\s*->\s*(.*?)\s*$/);        var input = match ? match[1].replace(/\s+$/,'') : text;        var output = match && match[2];        var test = (match                    ? {text: input, expect: output}                    : {text: input});        self.tests.push(test);        var line = (match                    ? ['<kbd>', input.escapeHTML(), '</kbd>',                       ' <samp>&rarr; ', output.escapeHTML(), '</samp>'].join('')                    : '<kbd>' + text.escapeHTML() + '</kbd>');        addLine('<div class="io">'+line+'<div class="clear"> </div></div>');    }    function defn(text) {        endParagraph();        var html = OSDoc.toMathHTML(text).replace(/==/, '=<sub class="def">def</sub> ')        blocks.push('<pre class="equivalence">' + html + '</pre>');    }    function indented(line) {        endParagraph();        pre(line.escapeHTML());    }    function para(line) {        block || blocks.push(this.block = block = []);        line = line.escapeHTML()        block.push(line);    }    // adders    function endParagraph() {        self.block = null;    }    function pre(line) {        addLine('<pre>&nbsp;&nbsp;' + line + '</pre>');    }    function addLine(line) {        var prev = blocks[blocks.length - 1];        var match;        if (typeof prev == 'string' && (match = prev.match(/<pre>(.*)<\/pre>/)))            return blocks[blocks.length-1] = '<pre>' + match[1] + '\n&nbsp;&nbsp;' + line + '</pre>';        blocks.push(line);    }}
meta: 10840	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10840/1e64d09977608f6bf36b92d6cf03e8e1a272fcfa/osdoc.apidoc.js/clean/osdoc/osdoc.apidoc.js