|
|
|
@ -12,7 +12,7 @@ module ApplicationHelper
|
|
|
|
|
|
|
|
|
|
# xss共计问题
|
|
|
|
|
def content_safe content
|
|
|
|
|
return nil if content.present?
|
|
|
|
|
return nil if content.blank?
|
|
|
|
|
tags = %w(
|
|
|
|
|
a abbr b bdo blockquote br caption cite code col colgroup dd del dfn dl
|
|
|
|
|
dt em figcaption figure h1 h2 h3 h4 h5 h6 hgroup i img ins kbd li mark
|
|
|
|
|