On 17/03/2009, at 12:36 PM, Jeremy Mawson wrote:
> If I change the line to "description" ->
> <span>{Unparsed(result.description)}</span>, it compiles but I have
> an unwanted span tag and worse ... if result.description is not well
> formed XML my page will fail to render! Firefox complains of an XML
> Parsing Error. The description field has an unmatched <br> tag
> (literally <br>) in the middle of it to force it onto two lines.
>
Try "description" -> <xml:group>{Unparsed(result.description)}</
xml:group>
That wraps the string in a scala XML group node...
With respect to the <br> tag, it should be <br/> or <br></br> to be
well formed. If you want to support non-well formed XML fro the
database wouldn't you need to parse it and convert it to well formed
first or upon retrieval ?
Regards,
Marc
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---