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

html_strip plugin questions

Development and Programming

George K's avatar
George K
75 posts
16 years ago
George K's avatar George K

I am trying to make a description tag with information taken from the body part.

<META NAME="Description" CONTENT="{exp:word_limit_plus if_exceeds="100" stop_after="20"} {exp:html_strip }{body}{/exp:html_strip} {/exp:word_limit_plus}">

The limit plus plugin works fine but in the description I get allot of elements and other strange things.

So I decided to use the html_strip plugin, but I still see the elements.

My question is,

1) can the plugin strip these elements? 2) Am I doing something wrong? 3) Is the plug not working?

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

Both are third-party plugins, I think, so I might have to move this down to a more appropriate forum, but this seems to work just fine:

{exp:weblog:entries limit="1"}
   {exp:word_limit_plus if_exceeds="100" stop_after="20"}
      {exp:html_strip}
         {body}
      {/exp:html_strip}
   {/exp:word_limit_plus}
{/exp:weblog:entries}

You do have a weblog:entries tag, of course?

       
George K's avatar
George K
75 posts
16 years ago
George K's avatar George K

Yes I have the weblog:entries tag, just not shown in the code above.

But my problem is the and other html elements. They refuse to be striped out.

Is there another plugin to strip out elemtns? Or parhaps, another way of ding it?

       
George K's avatar
George K
75 posts
16 years ago
George K's avatar George K

Hmmmm for some strange reason it works now. Ok never mind and please forgive for wasting your time

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

It works fine for me. Yes, there should be some other plugins to do the same. Let me move this thread to the appropriate forum.

       

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.