1DOMPurify.addHook('uponSanitizeAttribute', function(node, event) { 2 if(node.nodeName.toLowerCase() !== 'em' || event.attrName.toLowerCase() !== 'class') 3 { 4 node.removeAttribute(event.attrName); 5 } 6}); 7 8ACC.sanitizer = { 9 config: { 10 ALLOWED_TAGS: ['pre', 'address', 'em', 'hr', "p", "div", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", 11 "blockquote", 'b', 'i', 's', 'o', 'sup', 'sub', 'ins', 'del', 'strong', 'strike', 'tt', 'code', 'big', 'small', 'br', 'span'] 12 }, 13 14 sanitize: function(dirty) { 15 return DOMPurify.sanitize(dirty, ACC.sanitizer.config); 16 } 17};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.