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

return type:

string

examples

clean('<p>Hello&nbsp;&gt;&nbsp;there      </p>')          

returns

Hello > there

Related functions:

Update your privacy settings