I’m doing a XSL transformation that outputs different html <textarea> on the page. One of the issue with outputting as XML is that it just self-closes.
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
To avoid self-closing <textarea>, I’m adding a white-space in the XSL. So the final output becomes:
<textarea id="id_Message" > </textarea>
All I want to do is get rid of that empty space from all the on the page once the page loads. Any help to approach this problem will be highly appreciated.
If all your textArea can be emptyed, just do
If you just want to only empty the ones which have no real content, you may do this :