N
nadlox
Hi,
I'm getting a value to my JSP page (using JSF) with outputText from a
bean that has html encoding in it.
How could I temper with the HTML encoding so that I could preserve
certain tags? I need to have a few <BR> inside the text and want'em
displayed in HTML code, not <BR> etc...
What I'm doing is having a properties file for end users to modify. And
since there are some longer texts, they want to add paragraphs and line
breaks every now and then. So I've written a method that searches the
string for example \n and replaces'em with <br> just before this string
is sent to JSP. But now the encoding happens...
Or what would be the smartest way?
Regards,
Niko
I'm getting a value to my JSP page (using JSF) with outputText from a
bean that has html encoding in it.
How could I temper with the HTML encoding so that I could preserve
certain tags? I need to have a few <BR> inside the text and want'em
displayed in HTML code, not <BR> etc...
What I'm doing is having a properties file for end users to modify. And
since there are some longer texts, they want to add paragraphs and line
breaks every now and then. So I've written a method that searches the
string for example \n and replaces'em with <br> just before this string
is sent to JSP. But now the encoding happens...
Or what would be the smartest way?
Regards,
Niko