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

generating html using find and replace/regex safely is hard. escaping is easy. and the solution is to just not generate html using find and replace. You'll run into the exact same problem trying to do a bbcode/markdown/whatever parser using javascript


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

Search: