Zend\Escaper\Escaper::escapeHtmlAttr
Escape a string for the HTML Attribute context. We use an extended set of characters to escape that are not covered by htmlspecialchars() to cover cases where an attribute might be unquoted or quoted illegally (e.g. backticks are valid quotes for IE).
Signature
public function escapeHtmlAttr(string
$string )
Parameters
$string
— string
Returns
- string