Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 38 lines (23 sloc) 1.399 kb
6f1b046 @lhl Updated contact email and licenses, revised README a bit
authored
1 All code licensed under the GPL (any version)
2 http://www.gnu.org/licenses/gpl.html
3
4
af6f98d @lhl first commit
authored
5 ***WARNING***
8f24ea7 @lhl Tweaked README
authored
6 DO NOT USE THIS CODE IN PRODUCTION FOR XSS FILTERING. IT'S QUITE OLD AND CERTAINLY
7 VERY INSECURE. (The last update of this branch was Oct 2001!)
8
9 As of 2010 the most updated/comprehensive XSS filter is: http://htmlpurifier.org/
af6f98d @lhl first commit
authored
10
11
12 I've put this up for posterity and also from a request by the WP team to relicense
13 the code as GPL (instead of GPL 2.0)
14
6f1b046 @lhl Updated contact email and licenses, revised README a bit
authored
15
af6f98d @lhl first commit
authored
16 Biographical note: I originally whipped this up during a couple summer days after
8f24ea7 @lhl Tweaked README
authored
17 graduating from USC mostly as an exercise to learn Cold Fusion 4.0 - I wrote a tag
af6f98d @lhl first commit
authored
18 filter/balancer I believe after a conversation w/ mathowie. balanceTags was written
8f24ea7 @lhl Tweaked README
authored
19 first in PHP and then transcoded to CF. (incredibly painful)
af6f98d @lhl first commit
authored
20
21 A few months later, Michel asked/let me know he was using it in b2.
22
23 I'm amazed any of it remains in production, but I believe descendants of this code
24 continue to live on both in Metafilter and WordPress.
25
6f1b046 @lhl Updated contact email and licenses, revised README a bit
authored
26 See:
27 http://core.trac.wordpress.org/browser/trunk/wp-includes/formatting.php#L977
28
29 That's humbling, amazing, and more than a bit scary. And of course, that's how the
af6f98d @lhl first commit
authored
30 sausage gets made.
31
6f1b046 @lhl Updated contact email and licenses, revised README a bit
authored
32 (also perhaps of interest, I wrote this stack-based parser w/o having taken a compilers
33 class or having much understanding of Lex or YACC. I was sure there was a better way to
34 do it, but no one's bothered to rewrite it, so who knows)
af6f98d @lhl first commit
authored
35
8f24ea7 @lhl Tweaked README
authored
36
af6f98d @lhl first commit
authored
37 .l
Something went wrong with that request. Please try again.