Ruby on Rails Monday, May 8, 2017



On Monday, May 8, 2017 at 11:03:43 AM UTC-4, Colin Law wrote:
On 8 May 2017 at 15:50, fugee ohu <fuge...@gmail.com> wrote:
> database tables contain <tr><td>...
> when view renders < gets converted to &lt and > to &gt
> why is this happening?

To stop html injection
https://deadliestwebattacks.com/html-injection-quick-reference/

By the way did you solve your last issue (p==@posts.last)? You did not
reply to my question, which is not good manners.

Colin

Thanks, It works without the question mark at the end 
if p==@posts.last
 

--
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+unsubscribe@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/5c2bc6c4-f803-488d-893b-ce3c3bf19316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment