GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Escape::Houdini(3) User Contributed Perl Documentation Escape::Houdini(3)

Escape::Houdini - Perl API to Houdini, a zero-dependency C web escaping library

version 0.3.3

    use Escape::Houdini ':all';
    my $escaped = escape_html( '<foo>' );
    # $escaped is now '&lt;foo&gt;'

Escape::Houdini is a wrapper around the zero-depedency, minimalistic web escaping C library Houdini <https://github.com/vmg/houdini>.

This version of Escape::Houdini has been built against the commit <https://github.com/vmg/houdini/commit/3e2a78a2399bf3f58253c435278df6daf0e41740> of Houdini.

    escape_html( '<body class="foo">' ); # => '&lt;body class=&quot;foo&quot;&gt;'

    unescape_html( "&lt;body&gt;" ); # => '<body>'

    escape_xml( "<foo>" ); # => '&lt;foo&gt;'

    escape_url("http://foo.com/meh"); # => 'http%3A%2F%2Ffoo.com%2Fmeh'

    unescape_url('http%3A%2F%2Ffoo.com%2Fmeh'); # => "http://foo.com/meh"

    escape_js( "foo\nbar" ); # => 'foo\nbar'

    escape_js( 'foo\nbar' ); # => "foo\nbar"

Escape::Houdini doesn't export any function by default. Functions can be exported individually, or via the following tags:

    | tag   | exported functions         |
    |-------|----------------------------|
    | :all  | all o' them                |
    | :html | escape_html, unescape_html |
    | :uri  | escape_uri, unescape_uri   |
    | :url  | escape_url, unescape_url   |
    | :js   | escape_js, unescape_js     |

Houdini (natch) - <https://github.com/vmg/houdini>

Yanick Champoux <yanick@cpan.org>

This software is copyright (c) 2020, 2019, 2017, 2014, 2013 by Yanick Champoux.

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

2025-07-03 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.