strip_tags

Strip HTML and extenso tags from a string.

STRIP_TAGS

NAME

strip_tags - Strips HTML and extenso tags from a string.

SYNOPSIS

strip_tags(str,allowable)

PARAMETERS

str
The input string.
allowable
You can use the optional second parameter to specify tags which should not be stripped.

RETURN

Returns the stripped string.

EXAMPLES

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>
.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pusnei Sergey and Caroline Laplante, <sergey@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.