From 21b55e4462c2a9d3a6420d2754ab63a9d6f01da8 Mon Sep 17 00:00:00 2001 From: RSL Date: Tue, 9 Apr 2013 17:21:26 -0400 Subject: improve accuracy of simple_format documentation. span doesn't get sanitized. --- actionpack/lib/action_view/helpers/text_helper.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index 883d97d06a..147f9fd8ed 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -250,8 +250,11 @@ module ActionView # simple_format("Look ma! A class!", class: 'description') # # => "

Look ma! A class!

" # - # simple_format("I'm allowed! It's true.", {}, sanitize: false) - # # => "

I'm allowed! It's true.

" + # simple_format("Unblinkable.") + # # => "

Unblinkable.

" + # + # simple_format("Blinkable! It's true.", {}, sanitize: false) + # # => "

Blinkable! It's true.

" def simple_format(text, html_options = {}, options = {}) wrapper_tag = options.fetch(:wrapper_tag, :p) -- cgit v1.2.3