Skip to content

Commit 34f294b

Browse files
committed
Updated notes about attribute encoding in recycling.md.
1 parent 9d557ca commit 34f294b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/recycling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ The above assumes the default output setting of `'quotestyle' => 'double'`. Note
5353

5454
## HTML Encoding
5555

56-
HTML Attribute values and Textnodes are stored internally with any HTML encoding removed. On output the contents of the attribute or text node is then encoded with the `htmlspecialchars()` function, this will result in any special characters that were not encoded correctly on input being encoded on output.
56+
HTML Attribute values and Textnodes are stored internally with any HTML encoding removed. On output the contents of the attribute or text node is then encoded, this will result in any special characters that were not encoded correctly on input being encoded on output.
5757

58-
Any HTML entities (Except `<`, `>`, `=`, `'`, `"`) that were encoded on input, will now no longer be encoded and use the native character.
58+
Any HTML entities (Except `<`, `>`, `=`, `'`, `"`) that were encoded on input, will now no longer be encoded and use the native character (Note that for HTML attributes, only `&`, `<` and the quote character used to contain the attribute will be encoded).
5959

6060
*This is valid for documents that are outputted with the default UTF-8 encoding. For other encodings, especially single-byte encodings, characters that do not have a representation in the output encoding will be represented by its HTML entity.*

0 commit comments

Comments
 (0)