Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::diff(3pm) [debian man page]

HTML::Diff(3pm) 					User Contributed Perl Documentation					   HTML::Diff(3pm)

NAME
HTML::Diff - compare two strings of HTML This module compares two strings of HTML and returns a list of a chunks which indicate the diff between the two input strings, where changes in formatting are considered changes. HTML::Diff does not strictly parse the HTML. Instead, it uses regular expressions to make a decent effort at understanding the given HTML. As a result, there are many valid HTML documents for which it will not produce the correct answer. But there may be some invalid HTML documents for which it gives you the answer you're looking for. Your mileage may vary; test it on lots of inputs from your domain before relying on it. SYNOPSIS
$result = html_word_diff($left_text, $right_text); DESCRIPTION
Returns a reference to a list of triples [<flag>, <left>, <right>]. Each triple represents a check of the input texts. The flag tells you whether it represents a deletion, insertion, a modification, or an unchanged chunk. Every character of each input text is accounted for by some triple in the output. Specifically, Concatenating all the <left> members from the return value should produce $left_text, and likewise the <right> members concatenate together to produce $right_text. The <flag> is either 'u', '+', '-', or 'c', indicating whether the two chunks are the same, the $right_text contained this chunk and the left chunk didn't, or vice versa, or the two chunks are simply different. This follows the usage of Algorithm::Diff. The difference is computed on a word-by-word basis, "breaking" on visible words in the HTML text. If a tag only is changed, it will not be returned as an independent chunk but will be shown as a change to one of the neighboring words. For balanced tags, such as <b> </b>, it is intended that a change to the tag will be treated as a change to all words in between. AUTHOR
Whipped up by Ezra elias kilty Cooper, <ezra@ezrakilty.net>. Patch contributed by Adam <asjo@koldfront.dk>. SEE ALSO
Algorithm::Diff perl v5.14.2 2012-01-01 HTML::Diff(3pm)

Check Out this Related Man Page

HTML::Prototype::Helper::Tag(3pm)			User Contributed Perl Documentation			 HTML::Prototype::Helper::Tag(3pm)

NAME
HTML::Prototype::Helper::Tag - Defines a tag object needed by HTML::Prototype SYNOPSIS
use HTML::Prototype::Helper; DESCRIPTION
Defines a tag object needed by HTML::Prototype REMARKS Until version 1.43, the internal function $self-_tag> used $tag-as_XML> as its return value. By now, it will use $tag-as_HTML( $entities )> to invokee HTML::Entities::encode_entities. This behaviour can be overridden by setting $HTML::Prototype::Helper::Tag::USE_ASXML_FOR_TAG to 1. METHODS HTML::Prototype::Helper::Tag->new( $object_name, $method_name, $template_object, $local_binding, $object ) $tag->object_name( [$object_name] ) $tag->method_name( [$method_name] ) $tag->template_object( [$template_object] ) $tag->local_binding( [$local_binding] ) $tag->object( [$object] ) $tag->value( ) $tag->value_before_type_cast( ) $tag->to_input_field_tag( $field_type, \%options ) $tag->to_content_tag( $tag_name, $value, \%options ) SEE ALSO
HTML::Prototype, <http://prototype.conio.net/> AUTHOR
Sascha Kiefer, "esskar@cpan.org" Built around Prototype by Sam Stephenson. Much code is ported from Ruby on Rails javascript helpers. LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself. perl v5.10.1 2006-05-22 HTML::Prototype::Helper::Tag(3pm)
Man Page