What is the best way to escape HTML in the input field? For example, I've search input field
<input id="search" type="text" ng-model="search" placeholder="search...">
And I want to escape if somebody types something like this:
<script>alert("test123");</script>