Recently, I came across the need to sort the output of some XML transformed via XSLT. Normally, this isn’t too difficult. We just perform the sort within our template with some XSL code as simple as:
You may often need to remove HTML tags from some random text block and just display the raw text content. For example you may want to just display the text content of a multi-line rich text value using XSL. But since a multi-line rich text value is internally formatted with html, the html tags will be presented as part of the output.