in reply to REGEX negate XML tags
This might be what you're after to escape (not negate) the characters-
perl -MHTML::Entities -le 'print encode_entities(shift)' '"><' "><
HTML::Entities is tunable so you can set it to only escape exactly what you want.
|
|---|