Hi, Thanks all for the replies.
I finally got it working. The problem was that the user_name variable itself was '<span style="color: rgb(30, 30, 30)">something</span>'. Really sorry for this silly mistake. Special thanks to Massimo !! Regarding XSS concern, thanks but this is not the user name of the database table. It is just a common variable. Saurabh On Dec 8, 9:12 pm, Anthony <[email protected]> wrote: > On Thursday, December 8, 2011 7:34:52 AM UTC-5, Saurabh Kumar wrote: > > > Hi, > > > I am returning a dict (user_name="something") from my controller. > > > In my view, I am displaying it using {{=user_name}} > > > It generates an html code like... > > > <span style="color: rgb(30, 30, 30)">something</span> > > If user_name truly has the value "something" when returned in the dict by > the controller, then {{=user_name}} will only write "something" to the > response. The <span> tag must be generated by something else. Show your > controller and view code, and maybe we can figure it out. > > Anthony

