Search::Tools::XML 0.01
Search::Tools::XML are methods for playing nice with XML and HTML. SYNOPSIS use Search::Tools::XML; my $class = 'Search::
|
|||||||||||||||||||
Search::Tools::XML are methods for playing nice with XML and HTML.
SYNOPSIS
use Search::Tools::XML;
my $class = 'Search::Tools::XML';
my $text = 'the "quick brown" fox';
my $xml = $class->start_tag('foo');
$xml .= $class->utf8_safe( $text );
$xml .= $class->end_tag('foo');
# $xml: the "quick brown" fox
$class->escape( $xml );
# $xml: <foo>the "quick brown" fox</foo>
$class->unescape( $xml );
# $xml: the "quick brown" fox
my $plain = $class->no_html( $xml );
# $plain eq $text
Search::Tools::XML provides utility methods for dealing with XML and HTML. There isn't really anything new here that CPAN doesn't provide via HTML::Entities or similar modules. The difference is convenience: the most common methods you need for search apps are in one place with no extra dependencies.
NOTE: To get full UTF-8 character set from chr() you must be using Perl >= 5.8. This affects things like the unescape* methods.
Requirements:
tags
Download Search::Tools::XML 0.01
Authors software
|
|
|
|
|
|
|
|
|
|
Similar software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other software in this category
|
|
|
|
|
|
|
|
|
|
Featured Software
jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java
Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser
GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell
- Communications
- Database
- Desktop Environment
- Games
- Internet
- Multimedia
- Office
- Programming
- Science and Engineering
- System
- Text Editing&Processing
