HTML::Escape provides a limited functionality HTML entity escaper. It only handles "><&"'". As such, it can be quite a bit faster because it does less. Here are some numbers from my Mid-2012 MacBook Air: XS versus pure Perl: Benchmark: timing 10000 i...