Search

I posted in the GCSE extension thread that I was having a problem with the ‘middot’ entity that Google was returning in some search results in xml throwing an error in Symphony. Since i typed the entity into my post (as in ‘&’ + ‘middot’ + ‘;’), that page (page 2 of the GCSE thread) is throwing the same error! It seems that Symphony allows the entity into datasources, but can’t output them.

Are you outputting using…

 <xsl:value-of select="something" disable-output-ecscaping="yes" />

? I believe that’s what I did… although I also switched off of the GCSE extension and am using XML results straight from Google.

All these entities need to be converted to their numerical code.

I use http://www.yellowpipe.com/yis/tools/ASCII-HTML-Characters/index.php as a reference.

Thanks for the tips.

Since the error is on loadXML(), I don’t think my XSL gets a chance to manage it. It would be handy in the course of using APIs if Symphony could do this entity conversion, since there is really no way to handle an API that sends you entities. Maybe the standard Dynamic Datasouce does this already?

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