Search

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!

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details