logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Poet::Util::Web - Web-related utilities

Author

       Jonathan Swartz <swartz@pobox.com>

Description

       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

Name

       Poet::Util::Web - Web-related utilities

See Also

       Poet

Synopsis

           # In a script...
           use Poet::Script qw(:web);

           # In a module...
           use Poet qw(:web);

           # Automatically available in Mason components

See Also