GX::HTML::Util

Module Version: 0.2000_01

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 © 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.