So I love using the html5 pattern api. I want to setup a pattern(regex) that will not allow html tags to be entered into the form. I have a working example of the pattern api below. What regex should I use to stop all html tags?
<form onsubmit="alert('Boom!'); return false;">
<input type="text" pattern="[0-1]">
<input type="submit" value="submit">
</form>
<with<,&with&, and so on when putting the submitted text into an HTML document).<input type="text" pattern="^[^<>]+$">works well.3 > 2?<g>is an emoticon.4 / 2 = 2.