module
ActionView::Helpers::TextHelper
v3.0.0 -
Show latest stable
The TextHelper module provides a set of methods for filtering, formatting and transforming strings, which can reduce the amount of inline Ruby code in your views. These helper methods extend Action View making them callable within your template files.
Included modules
- SanitizeHelper
Constants
AUTO_EMAIL_RE = /[\\w.!#\\$%+-]+@[\\w-]+(?:\\.[\\w-]+)+/
AUTO_LINK_CRE = [/<[^>]+$/, /^[^>]*>/, /<a\\b.*?>/i, /<\\/a>/i]
AUTO_LINK_RE = %r{ (?: ([\\w+.:-]+:)// | www\\. ) [^\\s<]+ }x
BRACKETS = { ']' => '[', ')' => '(', '}' => '{' }
Files
- actionpack/lib/action_view/helpers/text_helper.rb