Rounak
Rounak

Reputation: 181

PrimeFaces editor value display without tags

<p:editor id="message" value=" #{user.contact}" width="600" height="500" style="margin-left: 20px;"></p:editor>

Above code helps me to save a text with style(as editor has the control property). But when I display the saved text as "h:outputtext", it comes out with tags. something like:

<br>asdasa</br>edw<b>sdcsdcsc</b>

if i display the save text in editor, I am unable to hide the control property. So how can I show a text with style and without tags?

Upvotes: 1

Views: 2493

Answers (1)

siebz0r
siebz0r

Reputation: 20359

If you want to show unescaped text use:

<h:outputText value="#{somebean.somevalue}" escape="false" />

Upvotes: 2

Related Questions