On 8/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have a need to print a '<' directly to the HTML. It must be the < > character and not < since I am constructing HTML tags in python.
Generally, when I have to do this, I find it's easier and less error-prone to use ElementTree to create the tags. That way you don't have to use the XML escape (which helps cut down on XSS issues), and you don't have to worry about introducing bugs like mismatched end tags. There's an example in the Intro to Widgets tutorial on Trac: http://trac.turbogears.org/turbogears/wiki/IntroductionToWidgets -- Tim Lesher <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

