Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm trying to display the text of a field but the code is displaying the full HTML output. How do I format it to display only the text?
Here's the code:
<xsl:value-of select="data [@alias = 'bodyText']"/>
Example of what it returns on the page:
<p><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </span></p>
What I would like it to return:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Suggestions?
Hi Asad,
Is this still something you're looking for a solution to?
Cheers,
/Chriztian
Thanks for checking in! I did figure out a solution.
<xsl:value-of select="string(./data [@alias = 'bodyText'])" disable-output-escaping="yes"/>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
XSLT Format HTML Output to Regular Text
I'm trying to display the text of a field but the code is displaying the full HTML output. How do I format it to display only the text?
Here's the code:
Example of what it returns on the page:
What I would like it to return:
Suggestions?
Hi Asad,
Is this still something you're looking for a solution to?
Cheers,
/Chriztian
Thanks for checking in! I did figure out a solution.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.