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
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
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
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 =
4 matches
Mail list logo