File: README.md

package info (click to toggle)
libhtml-escape-perl 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 316 kB
  • sloc: perl: 59; makefile: 3
file content (47 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# NAME

HTML::Escape - Extremely fast HTML escaping

# SYNOPSIS

    use HTML::Escape qw/escape_html/;

    escape_html("<^o^>");

# DESCRIPTION

This modules provides a function which escapes HTML's special characters. It
performs a similar function to PHP's htmlspecialchars.

This module uses XS for better performance, but it also provides a pure perl
version.

# FAQ

- Is there also an unescape\_html?

    No. Unescaping HTML requires a lot of code, and we don't want to do it.
    Please use [HTML::Entities](https://metacpan.org/pod/HTML::Entities) for it.

# BENCHMARK

                     Rate HTML::Entities   HTML::Escape
    HTML::Entities 14.0/s             --           -91%
    HTML::Escape    150/s           975%             --

# AUTHOR

Goro Fuji

Tokuhiro Matsuno &lt;tokuhirom AAJKLFJEF@ GMAIL COM>

# SEE ALSO

[Text::Xslate](https://metacpan.org/pod/Text::Xslate), [HTML::Entities](https://metacpan.org/pod/HTML::Entities)

# LICENSE

Copyright (C) Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.