strip_tags . string . sncode
STRIP_TAGS(1e)
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>
Other functions in String
Quote string with slashes.
base64_decodeDecodes data with MIME base64
base64_encodeEncodes data with MIME base64
bin2hexConverts binary data into hexadecimal representation
cgidataparse cgidata
chrReturn a specific character
chunk_splitSplit a string into smaller chunks.
Count_charsReturn information about characters used in a string.
crc32Calculates the crc32 polynomial of a string.
dqThis function is used to use any characters as quotes in str ...
escThis function is used to apply a filter to a string.
explodeSplit a string by string
extentionReturn the length of an expression.
find_in_setThis function is used to check is a value is set within a li ...
getnbreThis function returns the number of match regular expression
getoffsetThis function returns the position of the last match regular ...
getreThis function return the value of a named parameter in a reg ...
hashCalculate the hash of a string.
hex2binDecodes a hexadecimally encoded binary string.
hmacCompute HMAC
html2textConvert html text to plain text.
htmlentitiesConvert all applicable characters to HTML entities.
htmlspecialcharsConvert special characters to HTML entities.
htmlspecialchars_decodeConvert HTML entities to special characters
html_entity_decodeConvert all HTML entities to special characters
implodeJoin array elements with a string.
isalnumThis function is used to verify that the argument string con ...
isalphaChecks for an alphabetic character.
isasciiChecks whether c is a 7-bit unsigned char value that fits in ...
isblankTest for whitespace wide character.
iscntrlChecks for an control character.
isdigitChecks for a digit (0 through 9).
isfloatChecks if the argument is a float number.
isgraphChecks whether c is a character with graphical representatio ...
isintegerChecks for a digit (0 through 9) that may be preceed by + or ...
islowerChecks for a lower-case character.
isprintChecks for any printable character including space.
ispunctChecks for any printable character which is not a space or a ...
issetThis function is used to check if a value is contained in a ...
isspaceChecks whether c is a white-space character.
isupperChecks for a upper-case character.
iswalnumThis function is used to verify that the argument string con ...
iswalphaChecks for an alphabetic character.
iswblankTest for whitespace wide character.
iswcntrlChecks for an control character.
iswdigitChecks for a digit (0 through 9).
iswgraphChecks whether c is a character with graphical representatio ...
iswlowerChecks for a lower-case character.
iswprintChecks whether c is a character with graphical representatio ...
iswpunctChecks for any printable character which is not a space or a ...
iswspaceChecks whether c is a white-space character.
Checks for a upper-case character.
iswxdigitChecks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 ...
isxdigitChecks for a hexadecimal digits, i.e. one of 0 1 2 3 4 5 6 7 ...
lcThis function returns the lowercase value of a string.
lcfirstReturns lc value of a string’s first character.
lengthReturns the length of an expression
levenshteinReturn the distance between 2 strings.
ltrimEliminates whitespace from the beginning of a string.
money_formatFormats a number as a currency string.
nl2brInserts HTML line breaks before all newlines in a string
number_formatFormats a number as a regional number string
ordReturn Unicode value of character.
parseParse strings.
parse_query_stringThis function is used to parse a query string.
printOutput a string.
printfPrint formatted text.
quotemetaQuote meta characters.
resubPerform a regular expression substitute.
rindexLocate character in string (last occurence).
rtrimStrip whitespace (or other characters) from the end of a str ...
savecsvStores array to a file.
savexlsExport data to xls (Excel format)
setlocaleStrip whitespace (or other characters) from the end of a str ...
splitThis function is used to split a string.
splitreThis function is used to split a string with a regular expre ...
strcasecmpCase-insensitive string comparison.
strcspnFind length of initial segment not matching mask.
strinatcmpCase insensitive string comparisons using a natural order al ...
stringnifyTake an expression and return a string.
striposFind the position of the first occurrence of a case-insensit ...
stripslashesUn-quotes a quoted string
strnatcmpString comparisons using a natural order algorithm.
strncasecmpCase-insensitive string comparison of the first n characters ...
strncmpComparison of the first n characters.
strposFind the position of the first occurrence of a substring in ...
strrevReverse a string
strriposFind the position of the last occurrence of a case-insensiti ...
strrposFind the position of the last occurrence of a substring in a ...
strsubreturn a substring from the original string.
strtrTranslate characters or replace substrings.
strtr_ctxTranslate substrings.
strtr_listTranslate substrings.
str_getcsvParse a CSV string into an array.
str_ireplaceReplace all occurrences of the search string with the replac ...
str_padPad a string to a certain length with another string.
str_repeatRepeat a string
str_replaceReplace all occurrences of the search string with the replac ...
str_shuffleRandomly shuffles a string
str_splitConvert a string to an array.