html markup being stripped out
This is an open discussion with 7 replies, filed under General.
Search
Are you using value-of select="textnode"
? If so, try copy-of select="textnode/*"
instead?
David, am not sure I understand what you are saying...you think it has to do with the xsl transformation?
I am using select and not copy-of..
David that worked. Thank you very much...
why did it work?
xsl:value-of
returns all the text within the selected node
xsl:copy-of
returns all the elements (both tags and text) of the selected node
@driftwood, you should also look at using <xsl:apply-templates select='your-content-node/*' mode='html'/>
and use the ninja technique it could give you more flexibility long-term.
ah ok, thanks folks. All these little things..
Create an account or sign in to comment.
Hey FOlks,
quick question. I added some content that had html markup. That is P tags, and a couple divs, and mail to links. When I paste this into the text area of a content field, it's being stripped out at the front end.
I've added a richetext (redactor) formatter and can toggle between html and wusisyg view and it still keeps stripping the tags. Any ideas? Thanks!