This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem Translating 'escaped' HTML tags to real HTML
- From: Jarno dot Elovirta at nokia dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 3 Oct 2002 15:43:08 +0300
- Subject: RE: [xsl] Problem Translating 'escaped' HTML tags to real HTML
- Reply-to: xsl-list at lists dot mulberrytech dot com
FAQ,
> I need to translate an XML doc to HTML. The XML contains HTML
> tags in the
> format <br> This needs to be translated such that it is
> seen as a line
> brake tag by the browser.
[snip]
> Ideally I would like to simply translate all < to < and
> all > to > ,
> so all the HTML tags in the XML get displayed properly.
You have the wrong hammer.
sed -e 's/</</' -e 's/>/>/'
Cheers,
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list