I’d like to use render :text => h(‘this text should be html escaped so
that things like are still printed!’)
How do I do this? I assume I just need to require a file in the
controller, but I’m not sure what
I’d like to use render :text => h(‘this text should be html escaped so
that things like are still printed!’)
How do I do this? I assume I just need to require a file in the
controller, but I’m not sure what
Do I need to specify more information?
Is something I wrote unclear?
I can’t beleive that this is a stumper!
lstrecv wrote:
I’d like to use render :text => h(‘this text should be html escaped so
that things like are still printed!’)How do I do this? I assume I just need to require a file in the
controller, but I’m not sure what
On Fri, 9 Dec 2005, List R. wrote:
controller, but I’m not sure what
require ‘cgi’
CGI::escapeHTML ’
will work…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs