IceWalkers.com - Linux Software downloads and news
Name : Password :
Linux SoftwareLinux RPMLinux HowtosLink UsAboutAdvertise

HTML::Entities

 Perl Doc. Index   Quick jump:  
 

NAME

HTML::Entities - Encode or decode strings with HTML entities

SYNOPSIS
 use HTML::Entities;
 $a = "Våre norske tegn bør &#230res";
 decode_entities($a);
 encode_entities($a, "\200-\377");
DESCRIPTION

This module deals with encoding and decoding of strings with HTML character entities. The module provides the following functions:

decode_entities($string)
This routine replaces HTML entities found in the $string with the corresponding ISO-8859/1 (or with perl-5.7 or better Unicode) character. Unrecognized entities are left alone.
encode_entities($string, [$unsafe_chars])
This routine replaces unsafe characters in $string with their entity representation. A second argument can be given to specify which characters to concider as unsafe. The default set of characters to expand are control chars, high-bit chars and the '<', '&', '>' and '"' characters.

Both routines modify the string passed as the first argument if called in a void context. In scalar and array contexts the encoded or decoded string is returned (and the argument string is left unchanged).

If you prefer not to import these routines into your namespace you can call them as:

  use HTML::Entities ();
  $encoded = HTML::Entities::encode($a);
  $decoded = HTML::Entities::decode($a);

The module can also export the %char2entity and the %entity2char hashes which contain the mapping from all characters to the corresponding entities.

COPYRIGHT

Copyright 1995-2001 Gisle Aas. All rights reserved.

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

 Perl Doc. Index   Quick jump:  
 
Pure FTP server 1.0.28
Fast, easy and very secure FTP server.
Linux Kernel 2.6 2.6.33-rc7
Linux Kernel
Fetchmail 6.3.14
Full-featured and robust remote-mail retrieval and forwarding utility.
LilyPond 2.13.12
Music typesetter.
Squid 3.0.STABLE23
Full-featured Web proxy cache
Linux Kernel 2.4 2.4.37.9
Linux Kernel
GtkHTML 3.29.90
HTML rendering/editing library
DeSmuME 0.9.4
DeSmuME is a Nintendo DS emulator
Wine 1.1.38
Free implementation of Windows on Unix
LimeWire 5.5.0
Gnutella Client
Free IT Magazines, White Papers, eBooks, and more !
Oracle Magazine

Contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more.

Vulnerability Management for Dummies

Get all the Facts and See How to Implement a Successful Vulnerability Management Program.

Website Magazine

Has tapped premier talent in the Internet industry for our content and each and every issue will contain practical advice and insights for website owners.

Linux Software Map
Find Linux RPM
Best Rated Linux Software
Most Rated Linux Software
Linux Distributions
Linux Howtos
Quick Survey

Please take our survey and help us improve our website to serve you better.

Thank you.
Linux Software
Linux / IT Resources
Site Resources
Google
Privacy Policy
Contact Us
Submit Software
Advertising info