[web2py] Re: HTML in context_dict for sending mails

2012-06-05 Thread Anthony
Here's your original method: >>> links = "user_a" >>> print response.render('invite_friend.html', dict(links=links)) Hello there,
  • user_a
  • As you can see, the HTML tags in links are getting escaped in the call to response.render(), so the HTML

    [web2py] Re: HTML in context_dict for sending mails

    2012-06-05 Thread Sushant Taneja
    This does not work. Still facing the same issue. On Monday, June 4, 2012 8:57:34 PM UTC+5:30, Anthony wrote: > > By default, the template engine escapes everything -- to avoid that, do: > > links = XML("user_a") > > See http://web2py.com/books/default/chapter/29/5#XML. > > Anthony > > On Monday, J

    [web2py] Re: HTML in context_dict for sending mails

    2012-06-04 Thread howesc
    are you sending the string as the HTML part of the email: send(to=customer.email, subject="Plain text subject", message=(text_message, html_message) both my messages are from response.render (and neither sent through XML()). cfh On Monday, June 4, 2012 7:52:0

    [web2py] Re: HTML in context_dict for sending mails

    2012-06-04 Thread Anthony
    By default, the template engine escapes everything -- to avoid that, do: links = XML("user_a") See http://web2py.com/books/default/chapter/29/5#XML. Anthony On Monday, June 4, 2012 10:52:07 AM UTC-4, Sushant Taneja wrote: > > Hi All, > > I have a string var containing some HTML code > > links =