Hi i have created a DOM object using java. In this i have a description element created which actually has HTML tags.
I have used the following line
Code:
desc.appendChild(xmlDoc.createTextNode("<p><strong>this is a test</strong></p><p>Second line</p>"));
When I use XSL and try to display the content using
Code:
<xsl:value-of select="desc" disable-output-escaping="yes" />
it displays as textual data i.e. if i view the source all the '<' and '>' are converted to '<' and '>'. I actually dont want this. I want to remain as entered so that when displayed it displays the content as rich text, in this case bold and in seperate lines.
could anyone suggest how this can be done.
Thanks a lot in advance