You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by RobertCZ <ro...@robert.cz> on 2006/01/20 10:30:35 UTC

[Fwd: Re: Redefining common tags? (partial solution)]

This email doesn't seem to got to the list, so here it's again:

Please, how to URL-escape both text and color attribute in perlcode?

- Robert

$self -> AddTagBlock ('h2', ['color'], undef, undef, { perlcode => q{
        { local $escmode = 0;
            _ep_rp(%$x%, "<h2><img src=\"/img/h2.gif?color=%&color%&text="
            . XML::Embperl::DOM::Node::iChildsText(%$n%)
            . "\"></h2>");
        }}
    }) ;