Skip to content

Commit

Permalink
Merge pull request #55 from boxcleverliam/patch-1
Browse files Browse the repository at this point in the history
Update escaping-html-attributes.md changed HTTP typo to HTML
  • Loading branch information
Ocramius authored Apr 11, 2024
2 parents 8473765 + 7fc8475 commit 44031e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/escaping-html-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ not overlooked completely by developers. Regular [HTML
escaping](escaping-html.md) can be used for escaping HTML attributes *only* if
the attribute value can be **guaranteed as being properly quoted**! To avoid
confusion, we recommend always using the HTML Attribute escaper method when
dealing with HTTP attributes specifically.
dealing with HTML attributes specifically.

To escape data for an HTML Attribute, use `Laminas\Escaper\Escaper`'s
`escapeHtmlAttr()` method. Internally it will convert the data to UTF-8, check
Expand Down

0 comments on commit 44031e6

Please sign in to comment.