On 11/11/06, iain duncan <[EMAIL PROTECTED]> wrote: > If I want my javascript to be able to add strings that contain xhtml and > not have that be escaped, is there someway to include a javascript file > but have it be exempt from the kid xml constraints?
That would entirely defeat the purpose and at that point you're better off using a faster templating engine. > without having to add xml functions around the bold tags? Is this for > some reason just a bad idea? It's not a horrible idea, but the purpose of Kid (and Genshi) is to generate well-formed XML. If you allow arbitrary XML, you're basically undermining that, as you now have a tag soup string. The XML function is more of an escape valve than anything else. I think I might use XML() in one out of every 10 templates or so, if you're trying to figure out how to format data and are solving it by passing in formatted strings, you may want to look at py:def --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

