Hello, my name is Liora and I am currently hunting open source projects for company NeuraLegion (www.neuralegion.com)
We just launched a free annual subscription for open source projects for our AIAST tool NexPloit.
If you are interested, please, reach us on firstname.lastname@example.org!
Thank you for your time and consideration! If you have any questions, please do not hesitate to contact us!
I'm using gon in a web application where we're initializing gon with a bunch of data displayed generally across the application. Once piece of data we're initializing is a list of users. These users have names that are input from the users themselves, so the input is "unsafe". I see here that gon is calling
html_safe when it renders the data we pass it.
Is there a way for me to override the default rendering method? I'd like to call ActiveSupport's
json_escape method to make sure I'm escaping any nefarious user input for a user's name. https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/string/output_safety.rb#L306 Any thoughts?