Flowdock
method

sanitize

Importance_1
v1.1.6 - Show latest stable - 0 notes - Class: ActionView::Helpers::TextHelper
sanitize(html) public

Sanitizes the given HTML by making form and script tags into regular text, and removing all "onxxx" attributes (so that arbitrary Javascript cannot be executed). Also removes href attributes that start with "javascript:".

Returns the sanitized text.

Show source
Register or log in to add new notes.