Class: Literal::Tags
- Inherits:
-
Chunk::Abstract
- Object
- Chunk::Abstract
- 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"
Instance Attribute Summary
Attributes inherited from Chunk::Abstract
Class Method Summary collapse
Methods inherited from Chunk::Abstract
#initialize, #mask, #post_mask, #pre_mask, #revert, #unmask
Constructor Details
This class inherits a constructor from Chunk::Abstract
Class Method Details
.pattern ⇒ Object
17 |
# File 'app/models/chunks/literal.rb', line 17 def self.pattern() Regexp.new('<(?:'+TAGS+')[^>]*?>', Regexp::MULTILINE) end |