Is there a jQuery version of this function?
string strip_tags( string $str [, string $allowable_tags ] )
stri
Use the following to strip tags while keeping content
$('#text').find('p').contents().unwrap();
This will strip p tag where p is a child element of '#text'.
p