提交 847c123c 编写于 作者: W wycats

Concernify SanitizeHelper and TextHelper so including TextHelper correctly...

Concernify SanitizeHelper and TextHelper so including TextHelper correctly include SanitizeHelper and extends its ClassMethods
上级 991cd59a
......@@ -7,6 +7,7 @@ module Helpers #:nodoc:
# 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 Helpers #:nodoc:
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册