- Timestamp:
- 06/24/09 19:53:49 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WysiwygPlugin/lib/Foswiki/Plugins/WysiwygPlugin/TML2HTML.pm
r4292 r4294 601 601 602 602 my $xmltags = $this->{opts}->{xmltag}; 603 603 604 # Take out custom XML tags 604 605 sub _takeOutCustomXmlProcess { 605 606 my ( $this, $state, $scoop ) = @_; 606 607 my $params = $state->{tagParams}; 607 my $tag = $state->{tag};608 my $tag = $state->{tag}; 608 609 my $markup = "<$tag$params>$scoop</$tag>"; 609 if ( $this->{opts}->{xmltag}->{$tag}->($markup)) {610 if ( $this->{opts}->{xmltag}->{$tag}->($markup) ) { 610 611 return $this->_liftOut( $markup, 'PROTECTED' ); 611 612 } 612 613 else { 613 return $this->_liftOut( "<$tag$params>", 'PROTECTED' ) . $scoop . $this->_liftOut( "</$tag>", 'PROTECTED' ); 614 return $this->_liftOut( "<$tag$params>", 'PROTECTED' ) . $scoop 615 . $this->_liftOut( "</$tag>", 'PROTECTED' ); 614 616 } 615 617 } … … 624 626 625 627 sub _takeOutBlocks { 628 626 629 # my ( $this, $intext, $tag ) = @_; 627 630 … … 653 656 my $scoop; 654 657 655 # &$fn may rely on the existence of these fields, 658 # &$fn may rely on the existence of these fields, 656 659 # and may add more fields, if needed 657 660 my %state = ( tag => $tag, n => 0, tagParams => undef );
Note: See TracChangeset
for help on using the changeset viewer.
