search for: clean_html

Displaying 5 results from an estimated 5 matches for "clean_html".

2007 Dec 04
2
Bug: NoMethodError: private method `gsub'' called for nil:NilClass
...rue >> RedCloth.new(''<img src="">'',[:filter_html]).to_html NoMethodError: private method `gsub'' called for nil:NilClass from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/RedCloth-3.0.4/lib/RedCloth.rb:1118:in `clean_html'' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/RedCloth-3.0.4/lib/RedCloth.rb:1113:in `each'' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/RedCloth-3.0.4/lib/RedCloth.rb:1113:in `clean_html'...
2005 Nov 22
1
Patches?
I have a few of patches for RC. A quick fix for a bug in clean_html, an improvement to clean_html to sanitize more links, and the addition of "filter_classes" and "filter_ids". What should I do? Email them to someone? why? (sorry, couldn''t avoid it) I actually don''t have separate patches for each, but could do them if n...
2006 Jan 27
10
html special characters. h() failure.
I was trying to convert a some text with the (r) character it so it replaced character \xAE with &reg; h(@item.description) didn''t do anything. I need to use @item.description.grep(/\xAE/,''&reg;'') for it to work. I think the h() function should be able to do all the codes that are available. Regards Neil.
2006 Sep 18
2
RedCloth !image! bug with filter_html
...if.gif! and textile again" RedCloth.new(string, [:filter_html, :filter_styles]).to_html(:textile) I get: NoMethodError: You have a nil object when you didn''t expect it! The error occured while evaluating nil.gsub from ./script/../config/../config/../lib/redcloth.rb:1118:in `clean_html'' Huh? Everything works fine if I remove :filter_html (but then, my HTML is potentially dangerous, and I prefer RedCloth''s html filter to Rails'' sanitize method, which is only a blacklist, that is to say vulnerable). Any hint? Thank you! Nauhaie -- Posted via http:...
2009 Mar 05
0
Insert using Rake Task
Hi, Anyone can help me, I run my source code using rake task. It seems no error was trace, but when I look the table it doesn''t insert.I select the data here MysqlDB.Tablename and update/insert here SQLserverDB.TableName. # Start Here # rake mysqldata_select:sqldata_update def clean_html(html) new_html = strip_tags(html) # remove html tags new_html = decode_entities(new_html) # remove html encoded items new_html = new_html.strip # remove any whitespace from the edge of content end namespace :mysqldata_select do LOCATIONS = {1 => 6, 2 => 5, 3 => 5} task :sqldat...