EE 1
EE 2
SuperGeekery Tag Stripper
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- jQuery for the Control Panel
Tags
It takes a block of HTML and strips out tags, based on what you want to keep or save. Simple. Also supports encoding of HTML special characters as an option, which can be useful for meta data tags in the header.
I built it because I needed it for SuperGeekery’s site redesign. I had XHTML formatted information that I needed to have some tags on the home page, and all of the tags on the page that displayed the full post.
The SuperGeekery TagStripper lets you set tags you’d like to keep and you’ll get cleaned text back.
{exp:tagstripper:tagsToStrip tags=‘img|a’}
Get rid of this link.
{/exp:tagstripper:tagsToStrip}
It also works in the reverse. You can tell it was tags to get rid of.
{exp:tagstripper:tagsToSave tags=“strong”}
This will all be plain text except for this.
{/exp:tagstripper:tagsToSave}
One idea for using it is to take your summary text and then strip all tags and insert into the meta description content area. In version 1.0.2, in response to this use, you now have the option of encoding HTML special characters to their HTML entities. This can prevent accidentally closing a string in your HTML before intended.
SuperGeekery Tag Stripper Links
This entry was last updated January 25, 2011, 4:51 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!
2 Reviews:
bosh 12.31.11
This just saved me from Slideshare embed ‘div’ hell. After a morning trying to control the divs provided in their embed code so they didn’t break my layout (cos a user isnt going to want to mess with the code), just installing this and using tagsToStrip, I sorted everything in a minute.
JCDerrick 07.10.11
This is a brilliant add-on for removing (or keeping) just the tags you want. For us this was especially helpful in building our mobile site, as we needed to strip the hyperlinks from all the text. This plugin made quick work of that and saved us a lot of time.