Top "Sanitize" questions

Whitelist-based Ruby HTML and CSS sanitizer.

HTML Agility Pack strip tags NOT IN whitelist

I'm trying to create a function which removes html tags and attributes which are not in a white list. I …

c# tags html-parsing html-agility-pack sanitize
How good is the Rails sanitize() method?

Can I use ActionView::Helpers::SanitizeHelper#sanitize on user-entered text that I plan on showing to other users? E.g., …

ruby-on-rails xss sanitize
Safely sandbox and execute user submitted JavaScript?

I would like to have the ability to let users submit arbitrary JavaScript code, which is then sent to a …

javascript node.js eval sandbox sanitize
Sanitize user input in bash for security purposes

How do I sanitise user input in a bash script so that I can then pass it as an argument …

bash input sanitize
Using sanitize within a Rails controller

I'm trying to call sanitize within a controller. Here's what I tried: class FooController < ApplicationController include ActionView::Helpers::SanitizeHelper # ... …

ruby-on-rails controller helper sanitize
Ruby on Rails: How to sanitize a string for SQL when not using find?

I'm trying to sanitize a string that involves user input without having to resort to manually crafting my own possibly …

ruby-on-rails escaping sanitize tsvector
Codeigniter - best practice to sanitize input

I would like to know what's the best practice to sanitize user input using Codeigniter. I understands that CI offers …

php codeigniter validation sanitize
Strip style attributes with nokogiri

I'm scrapling an html page with nokogiri and i want to strip out all style attributes. How can I achieve …

html nokogiri sanitize
WordPress - How to sanitize multi-line text from a textarea without losing line breaks?

If I sanitize and save some meta text (called 'message') entered by the user like like this... update_post_meta($…

php wordpress textarea line-breaks sanitize
PHP: How to mass replace $_POST[...] with strip_tags($_POST[...])

I'm currently recovering from a nasty XSS attack, and realized I never sanitized inputs on several of the forms on …

php forms input sanitize strip-tags