handles global html attributes and does not highlight special characters anymore