mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Concernify SanitizeHelper and TextHelper so including TextHelper correctly include SanitizeHelper and extends its ClassMethods
This commit is contained in:
parent
991cd59a22
commit
847c123ca5
2 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ module ActionView
|
|||
# The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements.
|
||||
# These helper methods extend Action View making them callable within your template files.
|
||||
module SanitizeHelper
|
||||
extend ActiveSupport::Concern
|
||||
# This +sanitize+ helper will html encode all tags and strip all attributes that
|
||||
# aren't specifically allowed.
|
||||
#
|
||||
|
|
|
@ -10,6 +10,9 @@ module ActionView
|
|||
# your views. These helper methods extend Action View making them callable
|
||||
# within your template files.
|
||||
module TextHelper
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
include SanitizeHelper
|
||||
# The preferred method of outputting text in your views is to use the
|
||||
# <%= "text" %> eRuby syntax. The regular _puts_ and _print_ methods
|
||||
# do not operate as expected in an eRuby code block. If you absolutely must
|
||||
|
|
Loading…
Reference in a new issue