[Html-widget] literals
Bernhard Graf
html-widget at augensalat.de
Wed Apr 18 15:29:10 GMT 2007
Carl Franks wrote:
> On 18/04/07, Bernhard Graf <html-widget at augensalat.de> wrote:
> > Short question:
> >
> > Is there a way for literal texts in labels in HTML::Widget?
> > I need labels with HTML code being untouched.
>
> There are some places a ~literal element can't be used - I'm not sure
> if labels are one of them - but the standard way to use a literal
> HTML string in HTML::Widget is rather than this:
> $e->foo( $HTML );
> do this instead:
> $e->foo( HTML::Element->new('~literal', text => $HTML) );
That works! Many thanks!
--
Bernhard Graf
More information about the Html-widget
mailing list