method
textilize_without_paragraph
v2.2.1 -
Show latest stable
-
1 note -
Class: ActionView::Helpers::TextHelper
- 1.0.0 (0)
- 1.1.6 (0)
- 1.2.6 (2)
- 2.0.3 (29)
- 2.1.0 (0)
- 2.2.1 (0)
- 2.3.8 (0)
- 3.0.0
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
textilize_without_paragraph(text)
public
Returns the text with all the Textile codes turned into HTML tags, but without the bounding <p> tag that RedCloth adds.
You can learn more about Textile’s syntax at its website. This method is only available if RedCloth is available.
Examples
textilize_without_paragraph("*This is Textile!* Rejoice!") # => "<strong>This is Textile!</strong> Rejoice!" textilize_without_paragraph("I _love_ ROR(Ruby on Rails)!") # => "I <em>love</em> <acronym title="Ruby on Rails">ROR</acronym>!" textilize_without_paragraph("h2. Textile makes markup -easy- simple!") # => "<h2>Textile makes markup <del>easy</del> simple!</h2>" textilize_without_paragraph("Visit the Rails website "here":http://www.rubyonrails.org/.) # => "Visit the Rails website <a href="http://www.rubyonrails.org/">here</a>."
Register or
log in
to add new notes.
tordans -
December 20, 2010
0 thanks
New Website for RedCloth
The Link above doesnt work anymore. This one should be the new one: http://redcloth.org/