Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I would rather use a robust battle-tested parser and handle that edge case separately than to create regex for all of xhtml, copied off an opinionated blog, as a "hail-mary".


But the question is specifically about that edge case! So how to handle it, if the "robust battle-tested parser" is of no help?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: