Perl equivalent of htmlspecialchars()

Hi, I am looking for perl equivalent of PHP functions htmlspecialchars() and stripslashes() to parse a html page. Any pointers will be of great help. Regards, -Yogesh