10 Mar 2005 15:16:43 UTC
- Distribution: MKDoc-XML
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (4)
- Testers (2924 / 1 / 1)
- KwaliteeBus factor: 0
- 88.87% Coverage
- License: unknown
- Activity24 month
- Download (40.03KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionBPOSTLE Bruno Postle
- SEE ALSO
MKDoc::XML::Decode - Expands XML entities
use MKDoc::XML::Decode; my $decode = new MKDoc::XML::Decode qw/xml xhtml numeric/; # $xml is now "Chris' Baloon" my $xml = MKDoc::XML::Decode->process ("Chris' Baloon");
MKDoc::XML::Decode is a very simple module with pluggable entity decoding mechanism. At the moment there are three modules:
xml - Decodes ' " > < and & xhtml - Decodes XHTML entities such as é numeric - Decodes numeric entities such as A
Constructs a new decode object using the modules specified in @modules.
Decodes $stuff and returns it into $decoded.
Any entity which is not recognized will be returned as is but will trigger a warning.
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver
This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.