# How to filter RedCloth output

**URL:** <https://www.ruby-forum.com/t/how-to-filter-redcloth-output/149888>\
**Category:** Ruby\
**Created:** [September 30, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/how-to-filter-redcloth-output/149888 "2008-09-30T21:22:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oderas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8797f3/32.png) [@oderas](https://www.ruby-forum.com/u/oderas)\
**Post date:** [September 30, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/how-to-filter-redcloth-output/149888/1 "2008-09-30T21:22:47Z")

</div>

Hi, I’m looking on how to filter out certain tags from RedCloth output.  
For example the user in my application shouldn’t be able to use images  
or headers. Is this functionality already built in or did i have to  
filter it by myself?

---

<div class="post-metadata">

**Author:** ![oderas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/8797f3/32.png) [@oderas](https://www.ruby-forum.com/u/oderas)\
**Post date:** [October 1, 2008, 9:42am UTC](https://www.ruby-forum.com/t/how-to-filter-redcloth-output/149888/2 "2008-10-01T09:42:40Z")

</div>

Oscar Del ben wrote:

> For example the user in my application shouldn’t be able to use images  
> or headers. Is this functionality already built in or did i have to  
> filter it by myself?

You would either filter it out prior to giving to rc or after. You can  
use some simple regexps to filter out images.
