Class: Literal::Tags
- Inherits:
-
AbstractLiteral
- Object
- Chunk::Abstract
- AbstractLiteral
- Literal::Tags
- Defined in:
- app/models/chunks/literal.rb
Overview
A literal chunk that protects HTML tags from wiki rendering.
Constant Summary collapse
- TAGS =
"a|img|em|strong|div|span|table|td|th|ul|ol|li|dl|dt|dd"
- TAGS_PATTERN =
Regexp.new('<(?:'+TAGS+')[^>]*?>', Regexp::MULTILINE)
Instance Attribute Summary
Attributes inherited from Chunk::Abstract
#text, #unmask_mode, #unmask_text
Class Method Summary collapse
Methods inherited from AbstractLiteral
Methods inherited from Chunk::Abstract
apply_to, #escaped?, #id, inherited, #initialize, #mask, mask_re, mask_string, #rendered?, #revert, #unmask
Constructor Details
This class inherits a constructor from Literal::AbstractLiteral
Class Method Details
.pattern ⇒ Object
29 |
# File 'app/models/chunks/literal.rb', line 29 def self.pattern() TAGS_PATTERN end |