clean
function, since version 1.0.0
categories: sanitizing, strings
clean(str)
Clean up input string by removing html tags, decoding html entities and trims leading and trailing spaces. Use this to sanitize data
parameters
- str: string - string to be cleaned up
return type:
string
examples
clean('<p>Hello > there </p>')
returns
Hello > there