Page is a not externally linkable
ZakAltF4 - 5:19 pm on Feb 14, 2012 (gmt 0)
I am searching for a way to STRIP my string of special HTML chracters. From what I understand HTMLEntities will replace said characters with their HTML-safe counterpart. As I am dynamically building meta tags from content within our CMS, and there is 16,000 products. So going through every one and removing special characters is unreasonable, and replacing them with HTML in a meta tag is not good either. So is there a way to eradicate the following special charatcers that show up when I build my tag?:
<meta name="description" content="...... feature a Sanitized® ....." />
<meta name="description" content="...... Flexible “wide-mouth” ........"/>
It's not a terrible problem, but I like things neat and tidy if you know what I mean ... Thanks!
-- Zak