who i show in .rhtml my text "<b> Hellow! </b>" bold ? //Controller ... @message = "<b> Hellow! </b>" ... //view ... <%= @message %> ... result: <b>Hellow! </b> i would like Hellow! -- Ítalo Matos --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Next time choose a better subject then "help!". It''s not
describtive
about your problem. Most people won''t read it.
//Controller
...
@message = "Hellow!"
...
//view
...
<%= "<br>#{@message}</b>" %>
On 1 Feb., 15:07, "Italo Matos"
<italoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> who i show in .rhtml my text "<b> Hellow! </b>" bold
?
>
> //Controller
> ...
> @message = "<b> Hellow! </b>"
>
> ...
> //view
> ...
> <%= @message %>
> ...
>
> result:
> <b>Hellow! </b>
>
> i would like
> Hellow!
>
> --
> Ítalo Matos
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
it forgives , the message is dinamic. the message comes of the data base with tags. 2007/2/1, Thorsten L <duplexxx-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>:> > > Next time choose a better subject then "help!". It''s not describtive > about your problem. Most people won''t read it. > > //Controller > ... > @message = "Hellow!" > > > ... > //view > ... > <%= "<br>#{@message}</b>" %> > > > On 1 Feb., 15:07, "Italo Matos" <italoma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > who i show in .rhtml my text "<b> Hellow! </b>" bold ? > > > > //Controller > > ... > > @message = "<b> Hellow! </b>" > > > > ... > > //view > > ... > > <%= @message %> > > ... > > > > result: > > <b>Hellow! </b> > > > > i would like > > Hellow! > > > > -- > > Ítalo Matos > > > > >-- Ítalo Matos --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Italo Matos wrote:> the message is dinamic. > the message comes of the data base with tags.Try these two experiments in your rhtml: <%= ''<strong> yo </strong>'' %> <%=h ''<strong> yo </strong>'' %> The first should be bold, and the second should show <strong> etc in your browser. The h escapes < to <. Without it, you should get raw HTML. Now check your database - does it reeeally have < > in it? or < >? -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes.. the problem is interpret html tag <b></b> <a href=""></a> etc 2007/2/1, Phlip <phlip2005-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > Italo Matos wrote: > > > the message is dinamic. > > the message comes of the data base with tags. > > Try these two experiments in your rhtml: > > <%= ''<strong> yo </strong>'' %> > > <%=h ''<strong> yo </strong>'' %> > > The first should be bold, and the second should show <strong> etc in > your browser. > > The h escapes < to <. Without it, you should get raw HTML. > > Now check your database - does it reeeally have < > in it? or < >? > > -- > Phlip > http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! > > > >-- Ítalo Matos --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Italo Matos wrote:> the problem is interpret html tag > <b></b> > <a href=""></a> > etcPlease write complete posts with more details. -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---