Anthony, thanks, Frank
On Sunday, May 20, 2012 8:54:49 PM UTC+8, Anthony wrote: > > By calling the .xml() method, you are serializing the A() helper before it > gets written to the response body, so the template engine will escape the > string instead of inserting it as HTML. To avoid that, wrap the whole thing > in XML(): > > {{=XML('|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu))}} > > See http://web2py.com/books/default/chapter/29/5#XML. > > Anthony > > On Sunday, May 20, 2012 4:14:58 AM UTC-4, Frank wrote: >> >> hi,all, >> hope get help from you, >> >> {{=('|'.join(A(_[0],_href=_[2]).xml() for _ in response.menu))}} suppose >> to be >> several links on webpage, but it appear to be string on my app, how to >> change it? >> >> thanks, >> >> Frank >> >>