Antony Joseph schrieb: > I am trying to display the email files in the browser.. > I get an raw html , which is not wiell-formed one. > i want to display it in my turbogears application,
You mean, you have emails with a HTML part? Do you want to display the raw email (i.e. including headers, MIME-boundaries, the HTML code etc.) or do you want to display the HTML part only? > for that i want to skip/ignore the xml parsing which kid templates do > basically...... I see two possibilities: a) Use the XML() template function to only display the HTML part of the email. If necessary, sanitize the HTML code from the email with BeautifulSoup first. b) Wrap the email display in a PRE element for displaying the whole email message in raw format. HTH, Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

