support pruning with unbalanced tags inside
style/script fixes