Hi,
I've been mucking around with lift and having a great time. I have cooked up
a page that retrieves XML from a datasource and renders it. However some of
the text elements I extract are HTML encoded. When rendered in the browser
it looks like HTML code, rather than rendered HTML.
I looked for a scala utility to unescape this, found
scala.xml.Utility.unescape, but could not get it working.
Here's how I've tried to use it.
val title = Utility.unescape(result \ "title" text, new StringBuilder)
Unfortunately this always gives me a value of null, even though
result.\("title").text is something like - "Tsvangirai's wife killed
in<b>car</b>crash - ABC News"
What could I be doing wrong? I realise this is probably a plain old scala
question, but I hope someone here can help me anyway.
Thanks
Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---