HTML::FormRemove - remove form tags from HTML
my $html = "<FORM> <INPUT TYPE=TEXT NAME='Test' VALUE='Hello World!'> </FORM>"; use HTML::FormRemove print RemoveFormValues($html);
HTML::FormRemove is a module that removes form tags from HTML, while otherwise leaving the HTML intact. This allows for forms to be converted into something printable and usable.
Removes the form values. Exported by default. Returns an array of lines containing the updated HTML, or one single like containing them separated by newlines.
This module is a work in progress; I've only got basic functionality working at the moment.
Perl 5 or better, and the HTML::Form module (with everything that requires).
HTML::Form
http://www.ks.uiuc.edu/Development/MDTools/dbiframe for the latest version.
Modularize the code.
Make some more specific functions, and allow for more customizability within it. IE, it'd be nice to only take out <textarea> tags, and leave everything else alone.
Written by Tim Skirvin <tskirvin@ks.uiuc.edu>.
University of Illinois Open Source License Copyright (c) 2002 University of Illinois Board of Trustees All rights reserved Developed by: Theoretical Biophysics Group University of Illinois, Beckman Institute http://www.ks.uiuc.edu/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software, DBI::Frame, and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimers. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution. * Neither the names of the Theoretical Biophysics Group, the University of Illinois, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
Copyright 2001-2002 by the University of Illinois Board of Trustees and Tim Skirvin <tskirvin@ks.uiuc.edu>.
To install HTML::FormRemove, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormRemove
CPAN shell
perl -MCPAN -e shell install HTML::FormRemove
For more information on module installation, please visit the detailed CPAN module installation guide.