Search

Hi all! This is kind of a general XSLT issue but I thought I’d ask here because Symphony has built an excellent community of XSLT experts :)

I have a problem when I import an RSS feed generated by Wordpress. It imports using numeric entities so I end up with something like this (in the rss <description> tag):

...The Secretary serves as chair in the elected-chair&amp;#8217;s absence. ...

I think the problem is because the <description> tag is enclosed in CDATA and so the parser safely encodes everything.

Is there any way I can get the transformation to render the entity correctly and not add the ‘&amp;’ to it?

Are you using <xsl:value-of> or <xsl:copy-of>?

Try

<xsl:value-of select="description" disable-output-escaping="yes"/>

Thanks Allen!

I tried it with both and got the same results but ‘disable-output-escaping’ was what I was missing.

Thanks a bunch!

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