implements removing class and id attributes optionally (enabled by default).