Skip to content

HTML filtering rules - void elements are never removed #29

@ameshkov

Description

@ameshkov

The problem is in the wrong order of checks in ContentFilterRule.

Current implementation:

  1. Attributes check
  2. Check if content is empty (return NO if empty)
  3. Check tag-content and wildcard

Proper implementation:

  1. Attributes check
  2. Check if tag-content and wildcard are empty. If so - return YES
  3. Check if content is empty
  4. Check tag-content and wildcard

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions