I think if you step back, you will see what's going on here. Your single-quote in the Ruby-drawn content is prematurely ending the single quote surrounding the JavaScript rendered string.
Try escaping your content with gsub("'", "\'"). Walter On Apr 26, 2015, at 5:57 PM, Gm <javapla...@gmail.com> wrote: > Hi Daniel, > > modal.find('.modal-body').html('<%= raw @text.content %>'); > > On Sunday, April 26, 2015 at 5:28:38 PM UTC-3, Daniel Evans wrote: > How are you rendering that text? > > On Sun, Apr 26, 2015 at 1:22 PM, Gm <javap...@gmail.com> wrote: > Hi, > > I'm rendering a text inside a modal (bootstrap). But this text has this > character: ' > Example: Affonso Romano de Sant'Anna > > When the text above is rendered, nothing occurs. > I think is some problem with that character. > > Tips on how to solve this problem ? > 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 rubyonrails-ta...@googlegroups.com. > To post to this group, send email to rubyonra...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/6e33193e-44b3-441b-8da7-b2c0d0278c8e%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > > > -- > Daniel Evans > > -- > 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 rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/bf1a644d-a908-44f7-abc5-1581ae4a8fc2%40googlegroups.com. > 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 rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53A8D199-A30D-4E95-862C-160A8D8EB02D%40wdstudio.com. For more options, visit https://groups.google.com/d/optout.