Hello guys,

I have a very silly question. I have a snippet that reads a string field from 
the database and it inserts it within a html page.

So far so good. The text that the snippet reads from the database is a piece of 
html code. The problem is that the bind method replaces the "<" and ">" within 
the string with "&lt;" and "&gt;". The snippet looks like that:

if (context != "") {
            ContextHelp.findByKey(context.toLong) match {
                case Full(help) => {
                        val message = help.contextHelp
                        Helpers.bind("b", in, "text" ->  message.toString)
                }
                case _ => Helpers.bind("b", in, "text" -> "Context not found")
            }
        } else Helpers.bind("b", in, "text" -> "The URL is invalid. ")


The HTML that calls the snippet looks like this:

<lift:LoadHelp.getHelp>
        <b:text/>
</lift:LoadHelp.getHelp>

What should I do to get the html content without changes in the tags?

Thanks in advance,

GA

-- 
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.

Reply via email to