News for hackers. Stuff that matters.
Re:Can we believe our eyes? Misleading people with Unicode. by yuvipanda on Thursday August 11, 2011 @02:14PM (#2874043)
Is this 'really, really paranoid' library available somewhere?
Re:Can we believe our eyes? Misleading people with Unicode. by jerf on Thursday August 11, 2011 @05:03PM (#2874787)
Not yet. But it'll be in Haskell anyhow, so you're probably not actually interested :)

There are other such libraries for other languages, poke around. See for instance http://htmlpurifier.org/ .

Re:Can we believe our eyes? Misleading people with Unicode. by yuvipanda on Thursday August 11, 2011 @05:54PM (#2875002)
Even more intriguing. What exactly were you writing in Haskell that needed a super-paranoid html sanitizer? Yet another web server/blog/cms? Or something way more cooler?
Re:Can we believe our eyes? Misleading people with Unicode. by jerf on Thursday August 11, 2011 @09:10PM (#2875545)
Yet another blog, except not targeted for release or anything, just to run my own site. To replace the Django blog that runs my site. It's sort of my entertaining diversion, you know? Working with my own fresh, clean code base where I can try some ideas out without having to carry around a couple of man-centuries worth of legacy code every time I step at work. The cleansing library doubles as my HTML formatter, too, doing things like ensuring close italic tags and such. The paranoia is half real, half fun exercise.
Re:Can we believe our eyes? Misleading people with Unicode. by yuvipanda on Friday August 12, 2011 @01:56AM (#2876156)
Ah, yes - I see where you're coming from. Some day I hope to finish my blog, written in C :D Good luck for your haskell blog :)