Skip to content

Commit 2192530

Browse files
committed
HTML API: Improve comment about HTML syntax characters.
Developed in WordPress#12207. Follow-up to [62507]. Props dmsnell. See #64896. git-svn-id: https://develop.svn.wordpress.org/trunk@62519 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 91e53dc commit 2192530

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/phpunit/tests/html-api/wpHtmlTagProcessor.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,8 @@ public function test_attribute_ops_on_tag_closer_do_not_change_the_markup() {
890890
* // <div class="" onclick="alert"></div>
891891
* ```
892892
*
893-
* To prevent it, `set_attribute` escapes dangerous characters (`"`, `'`, `<`, `>`, `&`) using HTML character references.
893+
* To prevent it, `set_attribute` escapes HTML syntax characters like `"` using
894+
* HTML character references.
894895
*
895896
* ```php
896897
* <div class="&quot; onclick=&quot;alert"></div>

0 commit comments

Comments
 (0)