Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

clear Html Tags... for set in meta description..


logginn

Recommended Posts

Hi, Does it possible obtain a function to clear html tags on my description. I want use 260 char of my description in the <meta description="MY PRODUCT DESCRIPTION NO HTML">

 

Thanks for your reponse

Link to comment
Share on other sites

This will remove special characters also:

substr(preg_replace('[^a-zA-Z0-9]',' ',(strip_tags($name['$description']))),0,260);

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...