escape_attribute()
escape_attribute(string $input) : string
Escape value of an XML attribute, also adds quotes around it
Parameters
string | $input | Attribute value to escape |
Returns
string —escaped $input (with added quotes)