We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

an excerpt question - HTML strip/EExcerpt/Word Limit

Development and Programming

brittanyA's avatar
brittanyA
184 posts
16 years ago
brittanyA's avatar brittanyA

I’m looking for a plugin that strips all html AND text EXCEPT text wrapped in a p tag.

I’m sure I could alter an existing plugin to do this, if only I knew how. Any ideas?

Thanks!

(I’d written this entire post before I realized I started it with “I need a stripper…” – that was changed!) 😊

       
Daniel Walton's avatar
Daniel Walton
553 posts
16 years ago
Daniel Walton's avatar Daniel Walton

You could possibly use tag_limit as a base for your needs, if it doesn’t already do what you require

       
brittanyA's avatar
brittanyA
184 posts
16 years ago
brittanyA's avatar brittanyA

That’s perfect! It didn’t strip ALL html (client had an img within a p tag), but I used it in combination with html_strip and it’s great!

Thanks for the plugin!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.