Poet::Util::Web(3pm)

Poet::Util::Web3pm

Web-related utilities

Usage

    # In a script...
    use Poet::Script qw(:web);
    # In a module...
    use Poet qw(:web);
    # Automatically available in Mason components

Overview

This group of utilities includes

html_escape ($str)

Return $str with HTML entities escaped/unescaped.

uri_escape ($str), uri_unescape ($str)

Return $str URI escaped/unescaped, from URI::Escape

js_escape ($str)

Return $str escaped for Javascript, borrowed from JavaScript::Value::Escape.

make_uri ($path, $args)

Create a URL by combining $path with a query string formed from hashref $args. e.g.

    make_uri("/foo/bar", { a => 5, b => 6 });
        ==> /foo/bar?a=5&b=6

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9–10
  4. 11
  5. 12–13

Author

Jonathan Swartz <[email protected]>

From libpoet-perl 0.16-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.