Rendering text in a controller, converting to html


#1

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


#2

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


#3

On Fri, 9 Dec 2005, List R. wrote:

controller, but I’m not sure what
require ‘cgi’

CGI::escapeHTML ’

foobar

will work…

-a

===============================================================================
| ara [dot] t [dot] howard [at] noaa [dot] gov
| all happiness comes from the desire for others to be happy. all misery
| comes from the desire for oneself to be happy.
| – bodhicaryavatara