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 <andrew.d.bi...@gmail.com> 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&lt;br&gt;
> 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 <mdipie...@cs.depaul.edu> wrote:
>
> > {{=XML(s)}}} and s will not be escaped.
>
> > On Mar 26, 7:44 am, abiggs <andrew.d.bi...@gmail.com> 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&lt;br&gt; 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 web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to