in reply to Skipping HTML tags with HTML::TokeParser
You would have a comment handler where you would set a variable ($in_ignore_section). Then the appearance of an A-tag if you were in an ignore section could be ignored by you.
You will also need to take care of resetting the flag. Presumably you have a similar comment that says "end-ignore-section". Otherwise you'll have to clear it based on something else, i.e., the start / end of some other tag.
|
|---|