Str::unhtml()
Removes all html tags and encoded chars from a string
Str::unhtml(string|null $string): stringParameters
| Name | Type | Default | 
|---|---|---|
| $string | stringornull | no default value | 
Return type
string
Parent class
Examples
echo str::unhtml('some <em>crazy</em> stuff');
// output: some uber crazy stuff