xsl-list
[Top] [All Lists]

RE: Problem Translating 'escaped' HTML tags to real HTML

2002-10-03 05:43:08
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 &lt; to < and 
all &gt; to > ,
so all the HTML tags in the XML get displayed properly.

You have the wrong hammer.

  sed -e 's/&lt;/</' -e 's/&gt;/>/'

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>