html-safe
Rails3 CSV putting "" instead of actual quotes
Similar to this question except I don\'t use html_safe anywhere in the whole project. I generate a CSV file in index.csv.erb like this:[详细]
2023-04-03 21:44 分类:问答undefined method `html_safe' for #<String:0x1042222c0> using recaptcha
I\'m getting this error on the line where I call recaptcha_tags &开发者_开发知识库lt;%= recaptcha_tags( :public_key => \'XXXXXXYYYYYYYZZZ-ZXYXXZYZ\' , :display=>{:theme=>\"white\" }) %>[详细]
2023-03-16 05:21 分类:问答Rails 3 and html_safe confusion (allow pictures (smiles) in chat but deny everything else)
I have here is a module that replaces the smilies (like \":-)\") as icons: module Smileize PATH = \"/images/smiles\"[详细]
2023-03-16 01:44 分类:问答html_safe and gsub
In my CMS application I use gsub to replace parts of a user supplied html template (string) with dynamic code from the application (such as a comment from a user, or page content). I\'m upgrading from[详细]
2023-03-15 19:51 分类:问答Messy " returned from Rails 3 controller to view
On my Rails 3 app controller I have the following code: array = [] Location.all.each{|x|array<<x.city.html_safe}[详细]
2023-03-08 05:12 分类:问答How to escape javascript-generated html in Rails?
On one side of my page, I have a very simple email form. On the other side I have a preview of the proposed email. For example:[详细]
2023-02-26 19:52 分类:问答html_safe with undefined fields
i have a field which is not required i.e. can be nil. i want to use the ffg: myfield.html_safe in my view. this doesn\'t work for the items that have no myfield. i get an exception, how do i get html_[详细]
2023-02-20 18:14 分类:问答Is <span style=...> safe for sanitize?
I am using a rich text editor (CKEditor) and I have the opportunity to let users create profiles that are displayed to other users.[详细]
2023-02-18 04:50 分类:问答Why in Rails 3, <%= note.html_safe %> and <%= h note.html_safe %> give the same result?
It feels like html_safe adds an abstraction to the String class that requires understanding of what is going on, for example,[详细]
2023-01-23 04:02 分类:问答Convert or strip out "illegal" Unicode characters
I\'ve got a database in MSSQL that I\'m porting to SQLite/Django. I\'m using pymssql to connect to the database and save a text field to the local SQLite database.[详细]
2022-12-23 20:15 分类:问答