I feel like these nested if statements can be rewritten flat. Not certain what it would be but something like:

```
if (!this._shouldRemoveTag(tag, attributes)) {
    return;
}
if (!this._insideTagToRemove) {
    this._insideTagToRemove = true;
    this._removedTagStackIndex = this._tag_stack_index - 1;
}
return;
```

I think that is more clear and flatter.