Changeset 11545
- Timestamp:
- 04/25/11 05:18:56 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/HTML2TML.pm
r11467 r11545 53 53 my ($class) = @_; 54 54 55 #use handler method names to allow of subclassing of HTML2TML 55 56 my $this = new HTML::Parser( 56 start_h => [ \&_openTag, 'self,tagname,attr' ], 57 end_h => [ \&_closeTag, 'self,tagname' ], 58 text_h => [ \&_text, 'self,text' ], 59 comment_h => [ \&_comment, 'self,text' ], 60 declaration_h => [ \&_ignore, 'self' ], 61 start_document_h => [ \&_ignore, 'self' ], 62 end_document_h => [ \&_ignore, 'self' ], 63 default_h => [ \&_default, 'self,event,text' ] 57 start_h => [ '_openTag', 'self,tagname,attr' ], 58 end_h => [ '_closeTag', 'self,tagname' ], 59 text_h => [ '_text', 'self,text' ], 60 comment_h => [ '_comment', 'self,text' ], 61 declaration_h => [ '_ignore', 'self' ], 62 start_document_h => [ '_ignore', 'self' ], 63 end_document_h => [ '_ignore', 'self' ], 64 default_h => [ '_default', 'self,event,text' ], 65 comment_h => [ '_ignore', 'self' ] 64 66 ); 65 67 … … 202 204 # Autoclose tags without waiting for a /tag 203 205 my %autoClose = map { $_ => 1 } 204 qw( area base basefont br col embed frame hr input link meta param );206 qw( area base basefont br col embed frame hr input link meta param img ); 205 207 206 208 # Support auto-close of the tags that are most typically incorrectly
Note: See TracChangeset
for help on using the changeset viewer.
