This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]