You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Michele <de...@tiv-consulting.de> on 2018/11/16 11:47:33 UTC
Not escaping HTML in checkbox Tag
Hello list,
my problem is that i have a message resource key defined like this:
message.privacy=Die <a
href="/public/privacy/index.html">Datenschutzerklärung</a>
when i use it in text tag like this:
<struts:text name="message.privacy" escapeHtml="false"/>
all is ok an html is not escaped
but when i used it in checkbox tag like this:
<struts:checkbox key="message.privacy" />
html is escaped an my link is not working
is there a way to disable escaping on checkbox tag, i search the hole
documentation and i found nothing to disable escaping
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Not escaping HTML in checkbox Tag
Posted by Yasser Zamani <ya...@apache.org>.
Hi Marc,
There is a same question at [1]. Does it's answer satisfy your question?
Regards.
[1] https://stackoverflow.com/questions/19324332/struts-2-0-allow-html-in-label-of-scheckbox
On Nov 16, 2018, at 3:17 PM, Marc Michele <de...@tiv-consulting.de>> wrote:
Hello list,
my problem is that i have a message resource key defined like this:
message.privacy=Die <a
href="/public/privacy/index.html">Datenschutzerklärung</a>
when i use it in text tag like this:
<struts:text name="message.privacy" escapeHtml="false"/>
all is ok an html is not escaped
but when i used it in checkbox tag like this:
<struts:checkbox key="message.privacy" />
html is escaped an my link is not working
is there a way to disable escaping on checkbox tag, i search the hole
documentation and i found nothing to disable escaping
________________________________
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org