#!/usr/bin/perl while($line = ){ @valid_entities= ('','','','','
'); my %htmlenties = map { $_ =>1 } @valid_entities; $line =~ s/(<(\w+?)(>))/exists $htmlenties{$1} ? $1 : defined ($2) ? "<$2$3" : '<'/eg; print $line; } __DATA__ Hi...
how r u