strip_tags - Strips HTML and extenso tags from a string.
strip_tags(str,allowable)
in: res=<{strip_tags('<html><head>aaaaaa</head><body><a href="http://www.sednove.com">sednove</a> <p>is the best</p><script>var a="this one is tricky</script>"</script>')}>.
out: res=sednove is the best.
in: res=<{strip_tags('<html><head>aaaaaa</head><body><a href="http://www.sednove.com">sednove</a> <p>is the best</p><script>var a="this one is tricky</script>"</script>
','<a><script>')}>.
out: res=<a href="http://www.sednove.com">sednove</a> is the best<script>var a="this one is tricky</script>"</script>
.
{{ include("includes/strings.sn") }}
Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com
Edit© 2025 extenso Inc. All rights reserved.