note
Jenda
<p>You can have both a "^parent_tag" and a "parent_tag" rule. The first will be called before the children (and may decide to skip the whole branch, but it only has access to the attributes), the second will be called after all children.</p>
<code>
my %rules = (
_default => sub {$_[0] => trim($_[1]->{_content})},
'^parent_tag' => sub {...}, # called after parsing <parent_tag>
parent_tag => sub {...}, # called after parsing </parent_tag>
child_tag => sub {...}, # called after parsing </child_tag>
)
</code>
</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-105128">
<p>Jenda<br>
<b>Enoch was right!</b><br/>
Enjoy the last years of Rome.
</p>
</div></div>
1116093
1116093