X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=blobdiff_plain;f=lib%2FHTML%2FZoom%2FParser%2FBuiltIn.pm;h=13ae4441d01032eefb255493c9d9f33df90f7c10;hp=b55cc4d231044a4b3b66a7d7200a4ab88d497f5d;hb=af6300beb9c3e10e23c540973dc8fba94c194c56;hpb=b0ed28590e66eac5f5cb294a650c6d8faff00dd5 diff --git a/lib/HTML/Zoom/Parser/BuiltIn.pm b/lib/HTML/Zoom/Parser/BuiltIn.pm index b55cc4d..13ae444 100644 --- a/lib/HTML/Zoom/Parser/BuiltIn.pm +++ b/lib/HTML/Zoom/Parser/BuiltIn.pm @@ -16,6 +16,15 @@ sub html_to_stream { ->stream_from_array(@{$self->html_to_events($text)}); } +# DO NOT BE AFRAID. +# +# Well, ok. Be afraid. A little. But this is lexing HTML with a regexp, +# not really parsing (since the structure nesting isn't handled here) so +# it's relatively not dangerous. +# +# Certainly it's not really any more or any less heinous than anything else +# I could do in a handful of lines of pure perl. + sub _hacky_tag_parser { my ($text, $handler) = @_; while (