1HTML::Escape(3) User Contributed Perl Documentation HTML::Escape(3)
2
3
4
6 HTML::Escape - Extremely fast HTML escaping
7
9 use HTML::Escape qw/escape_html/;
10
11 escape_html("<^o^>");
12
14 This modules provides a function which escapes HTML's special
15 characters. It performs a similar function to PHP's htmlspecialchars.
16
17 This module uses XS for better performance, but it also provides a pure
18 perl version.
19
21 Is there also an unescape_html?
22 No. Unescaping HTML requires a lot of code, and we don't want to do
23 it. Please use HTML::Entities for it.
24
26 Rate HTML::Entities HTML::Escape
27 HTML::Entities 14.0/s -- -91%
28 HTML::Escape 150/s 975% --
29
31 Goro Fuji
32
33 Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
34
36 Text::Xslate, HTML::Entities
37
39 Copyright (C) Tokuhiro Matsuno
40
41 This library is free software; you can redistribute it and/or modify it
42 under the same terms as Perl itself.
43
44
45
46perl v5.28.0 2018-07-14 HTML::Escape(3)