Is there a jQuery version of this function?
string strip_tags( string $str [, string $allowable_tags ] )
stri
Not an actual answer, but a word of caution (depending on what you're trying to do with this):
IMHO, in almost all cases, input sanitization should be done on the server side (in this case, using the native PHP functions). If your intent is to replace PHP functionality with client-side functionality, I would strongly advise against it.
Why?
Just because you're authoring a website, it doesn't mean that: