javascript – Should not allow angle brackets from the regex-ThrowExceptions

Exception or error:

The below code is not allowing to enter the angle brackets which is good, but it is also not allowing to remove last character from the input box. I should able to make it empty.

var ng-pattern-restrict="[^<>]+"
How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *