[Done 1.4.0] meta tags not stripping HTML out of titles
php5.2.5
zen1.3.8a
mysql 5.2
My client has large product names...
He has inserted html break tags in the prod_name field. (varchar)
ie BIG product <br> 60mm <br> etc.
He has done the meta tag setup for some products which include product name.
The top bar of the browser shows the product name and the site description. The products without metatag definitions set do not show the html <br> tags.
The products with meta tags set Do show them as text..ie
BIG product <br> 60mm <br>.
Can anyone help me with this.
Ive tried changing the mime-type in the db but it makes no difference.
Would it be that the function that is generating the top bar info is not stripping out the html??,,,...but the tags only show up as text when metatags are defined...
Its an ugly look, ALSO the<> parts of the tags are stripped out in the navigation toolbar but the br becomes part of the address. Very messy.
UNDEFINED EXAMPLE
http://thebeadman.com.au/catalog/gla...ned-p-225.html
DEFINED EXAMPLE
http://thebeadman.com.au/catalog/gla...-ab-p-144.html
If someone could throw some light on this I would be eternally grateful.
Cheers
emmdee
Re: meta tags, mime-types
Try this:
/includes/modules/meta_tags.php
around line 258, you'll see this:
Code:
define('META_TAG_TITLE', str_replace('"','',$review_on . $meta_products_name));
define('META_TAG_DESCRIPTION', str_replace('"','',$metatags_description . ' '));
define('META_TAG_KEYWORDS', str_replace('"','',$metatags_keywords)); // KEYWORDS and CUSTOM_KEYWORDS are added above
make the additions shown:
Code:
define('META_TAG_TITLE', str_replace('"','',zen_clean_html($review_on . $meta_products_name)));
define('META_TAG_DESCRIPTION', str_replace('"','',zen_clean_html($metatags_description . ' ')));
define('META_TAG_KEYWORDS', str_replace('"','',zen_clean_html($metatags_keywords))); // KEYWORDS and CUSTOM_KEYWORDS are added above
Re: meta tags, mime-types
Thanks dr
works a treat locally...will do the remote thing later
much appreciated
cheers emmdee
Re: meta tags, mime-types
Moving to bug reports area to be addressed in future release.
Re: [Done 1.4.0] meta tags not stripping HTML out of titles
Dr Byte
I made a mistake with my version nos.
I applied the html clean to 1.3.7 cart mods/meta_tags.
Solved the info bar prob.
Did the same on 1.3.8a locally and the prob is NOT solved.
There must be some more cleaning to do.
Regards
emmdee