On Fri, Mar 28, 2014 at 10:01 PM, DeHaynes <[email protected]> wrote: > I have some groovy code and in it I am grabbing the value from a field and > storing it in an object. When the value has spaces, it is encoded with > " ". Is there a way to remove HTML encoding from a string? I looked > in Util and didn't see anything.
What type of field are you referring to? HTML input field? Is it a text area or an input with type=text? How do you get the value from the field? If the value contains then it's probably HTML so removing the HTML encoding will break the HTML as you can also have > or < before <em> 1 < 2</em> after I guess what you are trying to achieve is to get the plain text from an HTML content. Hope this helps, Marius > > Thanks. > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Decode-HTML-tp7589862.html > Sent from the XWiki- Dev mailing list archive at Nabble.com. > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

