Added option to escape token when invalid attrs are present
Fixed escape conditions