Thursday, November 3, 2011

[Rails] Re: form_for text_field

And also I had detected that if I change

def escape_once(html)
ActiveSupport::Multibyte.clean(html.to_s).gsub(/[\"><]|&(?!([a-zA-Z\u00C0-\u00FF]+|(#\d+));)/)
{ |special| ERB::Util::HTML_ESCAPE[special] }
end

method in
c:\Ruby187\lib\ruby\gems\1.8\gems\actionpack-2.3.5\lib\action_view\helpers\tag_helper.rb

to

def escape_once(html)
html
end

french symbols are displayed but also are displayed many wrong symbols
like new line...

--
Posted via http://www.ruby-forum.com/.

--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate