0

I have a variable whose value is html:

c.url = '<a href=""></a>'

When I display this in my mako template, the output is:

&lt;a href=&quot;&quot;&gt;&lt;/a&gt;

What's going on?

Thanks.

ensnare
  • 40,069
  • 64
  • 158
  • 224

1 Answers1

0

Your variable's content is being filtered so that it's safe to present. markupsafe.escape() is being run on it.

nmichaels
  • 49,466
  • 12
  • 107
  • 135