HtmlStrip constructor
HtmlStrip(
- Map config
Constructs a new instance
Implementation
HtmlStrip(super.config)
: caseSensitive = config['caseSensitive'] ?? true,
stripAnchorPatterns = config['stripAnchorPatterns'] != null
? IList([
for (String pattern in config['stripAnchorPatterns'])
config['caseSensitive'] ?? true
? pattern
: pattern.toLowerCase()
])
: const IListConst([]),
anchorSelector = config['anchorSelector'] ?? "a, img",
stripDom = [for (String pattern in config['stripDom'] ?? []) pattern]
.lockUnsafe;