Filter should take enterMode into consideration when stripping elements.
Force filter.enterMode==BR for blockless editor.
Merge branch 't/10071' into major
Clean up invalid elements (a/img without attrs, empty inline ones) after filtering.