// Strips complete and incomplete HTML tags from $html
function strip_bad_tags($html) { $s = preg_replace ("@</?[^>]*>*@", "", $html); return $s; }
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
function strip_bad_tags($html) { $s = preg_replace ("@</?[^>]*>*@", "", $html); return $s; }
You need to create an account or log in to post comments to this site.
» Selecting and checking items... in php xhtml html form select option radio checkbox selection persistent
» Strip html tags in ruby html strip tags
» Close dangling HTML tags in php html tidy
» PHP State-Array Generator in php html form dropdown states
» HTML stripper in ruby html strip
» Suexec'ed PHP-FastCGI on Apa... in apache php fastcgi suexec
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails