This project is archived and is in readonly mode.

#2973 ✓resolved
Magnus Bergmark

Add options passing to textilze helper

Reported by Magnus Bergmark | July 29th, 2009 @ 02:06 PM

When rendering textile inside a view using the textilize helper method, it is impossible to pass options to the renderer, which could be very useful if you want to filter HTML or perhaps just want to use lite_mode.

This proposed patch gives the ability to pass options by supplying them after the string like this

textilize("This is worded <strong>strongly</strong>")

=> "<p>This is worded <strong>strongly</strong></p>"

textilize("This is worded <strong>strongly</strong>", :filter_html)

=> "<p>This is worded &lt;strong&gt;strongly&lt;/strong&gt;</p>"

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Referenced by