Created
May 16, 2015 00:36
-
-
Save alex-laties/679f1f7aaa39b9d427b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* TODO rework this | |
* I built this under the assumption that 'elements' specified a list of either additions or removals from the skip list. this is not true. | |
* When * is present in the 'elements' string, + and - become meaningful as addtions/removals from the default set: | |
* a, abbr, acronym, address, applet, area, b, bdo, big, blockquote, br, button, caption, center, cite, code, col, colgroup, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, i, iframe, img, input, ins, isindex, kbd, label, legend, li, map, menu, noscript, object, ol, optgroup, option, p, param, pre, q, rb, rbc, rp, rt, rtc, ruby, s, samp, script, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var | |
* | |
* E. G. "*-ruby+script" - given the default set, remove 'ruby' and add 'script' as allowable tags | |
* | |
* | |
* | |
* When not using *, it means explicit allowance of only the given elements. this also means + and - become illegal characters... | |
* E. G. "a,p,br,div" - ONLY allow elements of a, p, br, div | |
* | |
* | |
* | |
* | |
* | |
* | |
* | |
* So yeah... fuck htmLawed. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment