rails 3.1 simple_format html options
Reading up here I find that I can use the simple_format text helper to send a text string to keep html newlines. Great. But I find that since it assumes a <p> tag that it messes with the CSS class in Blueprint CSS. OK, reading up on the API I find this:

> simple_format(text, html_options={}, options={})
> 
> simple_format("<span>I'm allowed!</span> It's true.", {}, :sanitize =>
> false)
> # => "<p><span>I'm allowed!</span> It's true.</p>"

There's no other example using an html_option that I can find. Here are two attempts to make it work, but both fail, either with syntax errors or app errors.

<

> %=simple_format(@opening.bob, html_options={"class="base prepend-1""},
> :sanitize => false)  %>
> 
> <%=simple_format(@openi
> ng.gbob, {class=base prepend-1}, :sanitize => true)  %>

I've tried a bunch of fooling around with different combinations but due to my inexperience, I'm not hitting the right one. What am I not seeing? thanx, sam

rails 3.1 simple_format html options
===

Reading up here I find that I can use the simple_format text helper to send a text string to keep html newlines. Great. But I find that since it assumes a <p> tag that it messes with the CSS class in Blueprint CSS. OK, reading up on the API I find this:

> simple_format(text, html_options={}, options={})
> 
> simple_format("<span>I'm allowed!</span> It's true.", {}, :sanitize =>
> false)
> # => "<p><span>I'm allowed!</span> It's true.</p>"

There's no other example using an html_option that I can find. Here are two attempts to make it work, but both fail, either with syntax errors or app errors.

<

> %=simple_format(@opening.bob, html_options={"class="base prepend-1""},
> :sanitize => false)  %>
> 
> <%=simple_format(@openi
> ng.gbob, {class=base prepend-1}, :sanitize => true)  %>

I've tried a bunch of fooling around with different combinations but due to my inexperience, I'm not hitting the right one. What am I not seeing? thanx, sam
