this should get what you want:
add(new Label("foo", text.replaceAll("<b>", "*")
.replaceAll("</b>", "*")
.replaceAll("<i>", "*")
.replaceAll("</i>", "*")));
Martijn
On 11/12/07, Francisco Diaz Trepat - gmail
<[EMAIL PROTECTED]> wrote:
> Hi, I have a Label who's model maight come with markup for bold italic,
> bullets, etc. (e.g. "<b>This</b> is a <i>Message</i>")
>
> Obviously I get "<b>This</b> is a <i>Message</i>" rendered.
>
> Is there a way to get the label to render:
>
> "*This* is a *Message*"
>
> thanks,
> f(t)
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]