The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

GX::HTML::Util - Utility functions

SYNOPSIS

    use GX::HTML::Util qw( escape_html );

DESCRIPTION

This module provides utility functions for dealing with (X)HTML.

FUNCTIONS

Public Functions

escape_html

Replaces all special (X)HTML characters in the given string with their entity representation.

    $escaped_string = escape_html( $string );
Arguments:
  • $string ( string )

Returns:
  • $escaped_string ( string )

The following characters are replaced:

    & => &
    < => &lt;
    > => &gt;
    " => &quot;
    ' => &apos;

AUTHOR

Jörg A. Uzarek <uzarek@runlevelnull.de>

COPYRIGHT AND LICENSE

Copyright (c) 2009-2011 Jörg A. Uzarek.

This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.