On 5/9/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > > Can you imagine how much of a pain that's going to be for my search > snippets! A single regex is going to turn in to lines of loop code! > Surely there must be an easier way?
Surely there is! I suggested the ET way, because elements are fast (and reportedly much faster than XML()). You can do this: from cgi import escape escaped = escape(original_string) ...do your regex to put in <strong>s and whatnot... XML(the result) profit! Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

