PerlDoc

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


internal package Foswiki::Plugins::WysiwygPlugin::HTML2TML::Node;

Object for storing a parsed HTML tag, and processing it to generate TML from the parse tree.

See also Foswiki::Plugins::WysiwygPlugin::HTML2TML::Leaf

ObjectMethod new( $context, $tag, \%attrs )

Construct a new HTML tag node using the given tag name and attribute hash.

ObjectMethod addChild( $node )

Add a child node to the ordered list of children of this node

ObjectMethod rootGenerate($opts) → $text

Generates TML from this HTML node. The generation is done top down and bottom up, so that higher level nodes can make decisions on whether to allow TML conversion in lower nodes, and lower level nodes can constrain conversion in higher level nodes.

$opts is a bitset. WC::VERY_CLEAN will cause the generator to drop unrecognised HTML (e.g. divs and spans that don't generate TML)

Kontakt
Pädagogische Hochschule Schwyz
Zaystrasse 42
CH-6410 Goldau
T +41 41 859 05 90
info@phsz.ch Dies ist ein Wiki des Fachkerns Medien und Informatik der Pädagogischen Hochschule Schwyz. Für Fragen wenden Sie sich bitte an wikiadmin@phsz.ch
This page was cached on 07 Feb 2025 - 23:54.
This website is using cookies. More info. That's Fine