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

it doesn't handle script tags correctly for the example cited. anything between <script> and </script> shouldn't be interpreted as html.

<html> <head> <script type='text/javascript'> var tag = '<input type="hidden" name="foo" value="bar"/>'; </script> </head> <body> body </body> </html>

./html_input_rx test.html input tag #1 at character 57: name => "foo" type => "hidden" value => "bar"

but very cool and could probably be fixed to handle that case quite easily.



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

Search: