You are here:  » set title and description with $q


set title and description with $q

Submitted by rolli1 on Mon, 2018-07-30 16:38 in

Hi David,
when I use $q in site titel and description, I find the following:

Large Size Women's
although the site is in utf-8.
Can I avoid this ? The database is utf-8?

Submitted by support on Tue, 2018-07-31 07:33

Hi,

When $header["title"] is output, it is passed through htmlspecialchars() which will convert the & of the HTML entity in your raw feed data into & which will ultimately display as the raw HTML entity itself.

To correct this, where you are using:

$q

...pass this through htmlentitydecode() at that point:

html_entity_decode($q)

...and your titles should then display as expected...

Cheers,
David.
--
PriceTapestry.com