MKDoc::XML::Stripper 0.75
MKDoc::XML::Stripper is a Perl module to remove unwanted XML / XHTML tags and attributes. SYNOPSIS use MKDoc::XML::Stripper;
|
|||||||||||||||||||
MKDoc::XML::Stripper is a Perl module to remove unwanted XML / XHTML tags and attributes.
SYNOPSIS
use MKDoc::XML::Stripper;
my $stripper = new MKDoc::XML::Stripper;
$stripper->allow (qw /p class id/);
my $ugly = '< p class="para" style="color:red" >Hello, < strong >World< /strong >!< /p >';
my $neat = $stripper->process_data ($ugly);
print $neat;
Should print:
< p class="para" >Hello, World!< /p >
MKDoc::XML::Stripper is a class which lets you specify a set of tags and attributes which you want to allow, and then cheekily strip any XML of unwanted tags and attributes.
In MKDoc, this is used so that editors use structural XHTML rather than presentational tags, i.e. strip anything which looks like a tag, a 'style' attribute or other tags which would break separation of structure from content.
Requirements:
tags
Download MKDoc::XML::Stripper 0.75
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
