# Textile - how to onl allow certain tags?

**URL:** <https://www.ruby-forum.com/t/textile-how-to-onl-allow-certain-tags/93227>\
**Category:** Rails\
**Created:** [April 29, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/textile-how-to-onl-allow-certain-tags/93227 "2007-04-29T17:47:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [April 29, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/textile-how-to-onl-allow-certain-tags/93227/1 "2007-04-29T17:47:05Z")

</div>

Hi,

I would like to use textile in my application, but would only like to  
allow certain tags, anyone aware of a way of doing this?

Thanks,  
Josh

---

<div class="post-metadata">

**Author:** ![josh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/45deac/32.png) [@josh](https://www.ruby-forum.com/u/josh)\
**Post date:** [April 29, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/textile-how-to-onl-allow-certain-tags/93227/2 "2007-04-29T19:45:20Z")

</div>

On Apr 29, 8:47 am, josh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> I would like to use textile in my application, but would only like to  
> allow certain tags, anyone aware of a way of doing this?
> 
> Thanks,  
> Josh
> 
> –  
> Posted viahttp://www.ruby-forum.com/.

#sanitize has VERBOTEN\_TAGS and VERBOTEN\_ATTRS switches:

> **[ActionView::Helpers::TextHelper](https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M000626)**
>
> The TextHelper module provides a set of methods for filtering, formatting and transforming strings, which can reduce the amount of inline Ruby code in your views.

OTW, google whitelist:  
[http://www.kookdujour.com/blog/details/11](http://www.kookdujour.com/blog/details/11)  
[http://svn.techno-weenie.net/projects/plugins/white\_list](http://svn.techno-weenie.net/projects/plugins/white_list)
