You cannot have both
Code from controller: session.sab=XML(catone.getResults()
[1].getSnippet())
Code from html page: {{=session.sab}}
OR
Code from controller: session.sab=catone.getResults()[1].getSnippet()
Code from html page: {{=XML(session.sab)}}
On Mar 27, 5:06 am, abiggs <[email protected]> wrote:
> Thanks, thats great.
>
> I've tried that and it has done something. Now the string appears as
> "including<br> your" in the page but is still "including<br>
> your" in the source and so it still appears and doesn't break the
> line.
>
> Any other ideas or am I doing it wrong?
>
> Code from html page: {{=XML(session.sab)}}
> Code from controller: session.sab=XML(catone.getResults()
> [1].getSnippet())
>
> Cheers
>
> On Mar 26, 1:24 pm, mdipierro <[email protected]> wrote:
>
> > {{=XML(s)}}} and s will not be escaped.
>
> > On Mar 26, 7:44 am, abiggs <[email protected]> wrote:
>
> > > Hi
>
> > > I'm currently writing a program that processes search results. As
> > > such, some of the strings which I am dynamically including in the page
> > > include HTML tags. Because they are included in {{}} in the page,
> > > these tags appear in text eg. "network<br> of Subject". Is
> > > there any way that I can make these appear as HTML tags in the source
> > > of the page rather than as text. So the example above would be
> > > "network <br> of Subject" in the source and would appear over two
> > > lines with no tag visible.
>
> > > Hope that makes sense (its a bit of a strange one to try and explain)
> > > and someone out there can point me in the right direction.
>
> > > Thanks in advance!!
--
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en.