MODIFIED convert-json-data-to-html to warn about XSS attacks (english) (#37036)
* MODIFIED convert-json-data-to-html to warn about XSS attacks (english) * Forgotten newline in convert-json-data-to-html * Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.english.md Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.english.md Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com> * fix: suggested changes * fix: added commas
This commit is contained in:
@ -25,6 +25,7 @@ json.forEach(function(val) {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<strong>Note:</strong> For this challenge, you need to add new HTML elements to the page, so you cannot rely on `textContent`. Instead, you need to use `innerHTML`, which can make a site vulnerable to Cross-site scripting attacks.
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
## Instructions
|
## Instructions
|
||||||
|
Reference in New Issue
Block a user