You're welcome.

On Wed, Apr 22, 2015 at 9:42 PM, Gm <[email protected]> wrote:

> I  owe a donut to you.
> Thank you man.
>
> On Wednesday, April 22, 2015 at 4:26:40 PM UTC-3, Vladimir Gordeev wrote:
>>
>> Gosh, I mean method .html() instead of method .text()
>>
>> On Wed, Apr 22, 2015 at 9:25 PM, Vladimir Gordeev <[email protected]
>> > wrote:
>>
>>> You should use method .content() instead of method .text()
>>>
>>> On Wed, Apr 22, 2015 at 9:21 PM, Gm <[email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have an action that renders a simple text:
>>>>
>>>> text.js.erb
>>>> modal.find('.modal-body').text('<%= @text.content %>');
>>>>
>>>> This content variable contains a string with some html tags.
>>>> But these tags aren't displayed correct.
>>>> I tried to use raw, html_safe, etc
>>>> But nothing worked.
>>>>
>>>> How can I display the content with html tags formated ?
>>>>
>>>> example: <strong>my text</strong>
>>>>
>>>> *my text*
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ruby on Rails: Talk" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/rubyonrails-talk/1d20fcb4-3fde-4d6f-ac86-f2de80ae9f2e%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/rubyonrails-talk/1d20fcb4-3fde-4d6f-ac86-f2de80ae9f2e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/4cef81ee-b4e6-43b6-81d8-dba70c6a0212%40googlegroups.com
> <https://groups.google.com/d/msgid/rubyonrails-talk/4cef81ee-b4e6-43b6-81d8-dba70c6a0212%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAP1h_xd%2BKEfjwdtVK-p7Yprw%2BKxvuP1tupqFHJEatiuUVuWNDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to