Grokbase
Topics Posts Groups | in
x
[ help ]

Re: [Html-widget] literals

View PostFlat  Thread  Threaded | < Prev
Bernhard Graf Re: [Html-widget] literals
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Carl Franks wrote:

> On 18/04/07, Bernhard Graf <html-widget@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

_______________________________________________
Html-widget mailing list
[email protected: Html-w...@lists.rawmode.org]
http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget

Thread : [Html-widget] literals
1)
Bernhard Graf Short question: Is there a way for literal texts in labels in HTML::Widget? I need labels with HTML...
2)
Carl Franks There are some places a ~literal element can't be used - I'm not sure if labels are one of them -...
3)
Bernhard Graf That works! Many thanks!
spacer
View PostFlat  Thread  Threaded | < Prev
Home > Groups > HTML::Widget > [Html-widget] literals (3 posts) > View Post