remove unneeded html attributes