# Truncate\_and\_strip tag of search extension

**URL:** <https://www.ruby-forum.com/t/truncate-and-strip-tag-of-search-extension/107418>\
**Category:** Radiant CMS\
**Created:** [June 21, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/truncate-and-strip-tag-of-search-extension/107418 "2007-06-21T17:27:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spliffer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@spliffer](https://www.ruby-forum.com/u/spliffer)\
**Post date:** [June 21, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/truncate-and-strip-tag-of-search-extension/107418/1 "2007-06-21T17:27:58Z")

</div>

Hy everybody,  
in my radiant site I’m using the search extension and it’s works very  
well.  
I’ve tried to use the \<r:truncate\_and\_strip [length=“100”] /\> tag but I  
don’t understand very well how does it work.  
I need to display a snippet of the found pages and i tried this piece of  
code:

\<r:search:results:each\>

### 

but it dosen’t work very well.  
Can someone explain me how does this tag works maybe with a small  
example?

Thanks and greatings
