I am learning Angular and have a form that users can book a hotel. This posts to a 3rd party API.
I understand xss and ng-bind-html when the data is outputted back to the view but how do you strip a form or input box of malicious code before the form is sent to the API?
I know Laravel has a sanitize function that you can wrap in your model beforehand.
$sce and $sanitize from what I can see only deals with the view? Or does Angular handle this out of the box?