similar to: Modifying VERBOTEN_TAGS in TextHelper

Displaying 20 results from an estimated 10000 matches similar to: "Modifying VERBOTEN_TAGS in TextHelper"

2006 Aug 10
3
Want to use a view helper (TextHelper) in a model class
I have a model that deals with HTML and I want to use the text_helper.sanitize method to strip the HTML of Javascript. However, it doesn''t appear that I can get easy access to the text_helper methods from within a model. Anyone have any suggestions for how to do this? In general, I think that there are some ActionView helpers which are generic enough to want to use in a model class.
2006 May 15
1
Simple: How to use TextHelper in a controller
I''m having trouble succesfully getting access to the ActionView::Helpers::TextHelper.strip_tags method from one of my controllers. If I try to call it directly using ActionView::Helpers::TextHelper.strip_tags I get undefined method `strip_tags'' for ActionView::Helpers::TextHelper:Module What is the preferred way to make ActionView helpers available to a descendant of
2009 Sep 14
0
markdown call prompts "uninitialized constant ActionView::Helpers::TextHelper::Markdown" in upgraded application
Hey All, I''m attempting to upgrade my app from rails 2.0.2 to 2.3.3. One bit that''s failing is this call here (in /views/projects/show.html.erb) <%= markdown(@project.description) %> That earns me a: uninitialized constant ActionView::Helpers::TextHelper::Markdown On that line. I''m on a rebuilt machine (windows xp, ruby 1.8.6) so I thought it was a
2011 Apr 19
1
RSpec/Webrat Checking output is properly escaped
I want to test that the JSON response from a create action is sanitized properly, but rspec or webrat appears to be parsing the output into proper HTML chars instead of escaped characters. I have verified that it escapes properly in the regular browser json response. The relevant RSpec test code is: include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper it
2006 Mar 01
0
TextHelpers in Controller?
I have a controller that saves info to the DB. It''s based on the AJAX scaffolding code. All I want to do is add a simple_format() function to it before I save a user-edited text field to the DB. TO convert line returns to <br>s, etc. @project_note = ProjectNote.new(params[:project_note]) @project_note.body = simple_format(@project_note.body) Since this happens in a controller,
2006 Jan 04
2
Using gems from vendor/ ?
Maybe someone here can help me out. I''ve unpacked tzinfo in to my vendor/ directory using "gem unpack tzinfo" and got a vendor/tzinfo-0.1.1 directory as a result. How can I require this gem in my app? I''m trying to use a require line in my environment.rb but no matter what I do Rails seems to look for a locally installed copy in /usr/local/ instead. Any advice?
2019 Feb 25
4
[cfe-dev] [8.0.0 Release] Need help with PR40761: Sanitizers broken on FreeBSD
Many thanks for digging into this, and sorry for my slow reply. Kamil: it sounds like your commit is involved here. Any idea what's happening? Dimitry: If we don't find anyone to debug and fix this before the release, how bad is it for FreeBSD? Can it be worked around downstream if 8.0.0 ships without a fix? Since I'm not entirely sure how supported this functionality is on FreeBSD,
2009 Jan 06
1
How to access text helper and url helper methods in model
Hi, I want to access TextHelper and UrlHelper methods in my model so how i am able to access it ? I was included following helper in my model but still it is not working? also for accessing these helper method w need to give external reference? E.g. class Xyz include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper Also
2018 Feb 15
1
Xray Instrumentation FreeBSD
HI FreeBSD developers, Xray instrumentation early support had been committed lately, had been made "high level" enough for further platforms porting (with kamil help). I invite you to test in your side if interested. Besides the memory sanitizer would be available as well, at least the clang frontend been is already committed. Regards. -------------- next part -------------- An HTML
2006 May 16
3
Best way to handle namespace collisions?
All, I have a little namespace collision here. I am trying to use both RubyfulSoup (an HTML parser - which I highly recommend by the way) and the ActionView::Helpers::TextHelper class. Within the TextHelper class, there''s an attempt to create a new "Tag" object. However, Tag is also defined in the RubyfulSoup gem and it is _this_ Tag class whose initialize method is
2016 Aug 24
2
maildirsize not correct
Thanks, but this is most probably different issue. My maildirsize is computed incorrectly even if I delete it completely and let dovead recompute it so expunging is not in the game. Is there any way how to track/debug the recomputation algorithm in dovecot? On Wed, Aug 24, 2016 at 12:02 AM, WJCarpenter <bill-dovecot at carpenter.org> wrote: > A long shot, but here's how I
2007 Nov 06
1
R 2.6.0 make check fails on SGI origin 350 and
Hello I am trying to install R 2.6.0 on a SGI Origin 350 running IRIX 6.5 6.5.28f R was configured with the following options: > --x-includes=/usr/include/X11 > --x-libraries=/usr/lib/X11 > --includedir=/usr/freeware/include > --includedir=/usr/freeware/lib32 > --includedir=/usr/freeware/lib64 > --with-readline=no > --with-iconv=no > CC=cc gmake complied
2012 Dec 08
0
Security - How to sanizitize JSON?
Hi, I''m on Rails 3.2.8 and one of my apps sends some json to create DB objects. What''s the best way to sanitize json? I found this post claiming that for json we need to escape manually since json_escape is broken: http://blog.bigbinary.com/2012/05/10/xss-and-rails.html I tried using the sanitize gem (https://github.com/rgrove/sanitize/) but when using it on a json string it
2013 Apr 01
0
Error message in dredge function (MuMIn package) with binary GLM
Hi all, My replies within the forum aren't getting approved, though my emails always go through, so here is my reply to a question I previously posted (all questions and answers shown). Thanks, Cat I'm having trouble with the model generating 'dredge' function in the MuMIn 'Multi-model Inference' package. Here's the script: globalmodel<-
2007 Nov 29
27
Strip & Sanitize BEFORE saving data
So I''ve googled my brains out, and I see a lot of talk about TextHelper for views, but next to no discussion about cleaning text _before_ it is saved. I figured this had to be asked 4 zillion times, but I''m not finding anything concrete/obvious. Using h is fine as a safety catch, but that alone is not acceptable to me as the means of diffusing the impact of HTML or JS
2016 Jan 05
8
[Bug 2520] New: ssh-keygen: sanitize ANSI escape sequences in key comment
https://bugzilla.mindrot.org/show_bug.cgi?id=2520 Bug ID: 2520 Summary: ssh-keygen: sanitize ANSI escape sequences in key comment Product: Portable OpenSSH Version: 7.1p1 Hardware: amd64 OS: Linux Status: NEW Severity: minor Priority: P5 Component: ssh-keygen
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has.. http://php.net/basename Example: http://rubyonrails.org/truncate and it will points to http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541 That woul be cool. Thanks
2009 Jan 01
2
Ruby on rails API website suggestion
I would like to request a feature.. like: http://rubyonrails.org/function and it will search inside http://api.rubyonrails.org for the function and show it. Like PHP has.. http://php.net/basename Example: http://rubyonrails.org/truncate and it will points to http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001541 That woul be cool. Thanks
2009 Mar 26
0
reverse of simple_format?
Hello! Is there a way to reverse the TextHelper simple_format? I.e. to take some text with <p> tags and <br> tags and convert them into line breaks in a smart way? (smarter than just a regexp that is). TIA! -Danimal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2009 Apr 22
2
what escape or sanitize functions are out there?
i found the following functions or method to escape HTML, URL params, or Javascript data: <%= h @ha %> <%= sanitize @ha %> <%= u @ha %> <%= @ha.to_json %> <%= strip_tags @ha %> are they more functions or methods to do these things? and are there alternative ways to do that? thanks. -- Posted via http://www.ruby-forum.com/.