You mean you want to HTML-escape the XML? If so, you could either do it manually or use the :cdata filter.
On Thu, Dec 9, 2010 at 2:27 PM, Karl <[email protected]> wrote: > I have a few lines of XML I would like to display. It is not in a > variable. Here is a sample: > > <?xml version="1.0" encoding="UTF-8"?> > <vendor-drafts type="array"> > <vendor-draft> > <serial-number>000000037</serial-number> > </vendor-draft> > </vendor-drafts> > > I can find several examples on how to handle this when it coming > through a variable, but none when it's just plain text in the HAML > document. Everything I tried just keeps trying to evaluate the XML as > HTML and not escaping the entire block. > > I don't care so much about spacing and indention, but it would be nice > if it's preserved. > > What's the best way to handle this? > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" 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/haml?hl=en.
