Skip to content

Commit

Permalink
add: minor revisions on XSS part
Browse files Browse the repository at this point in the history
  • Loading branch information
nabilmuafa committed Oct 2, 2024
1 parent 2e9961d commit 000f877
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ Fungsi `strip_tags` yang kamu tambahkan akan "membersihkan" semua data **baru**,
...
async function refreshMoodEntries() {
...
moods.forEach((item) => {
moodEntries.forEach((item) => {
// highlight-start
const mood = DOMPurify.sanitize(item.fields.mood);
const feelings = DOMPurify.sanitize(item.fields.feelings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ The `strip_tags` function that you have added will "clean up" all new data, but
...
async function refreshMoodEntries() {
...
moods.forEach((item) => {
moodEntries.forEach((item) => {
// highlight-start
const mood = DOMPurify.sanitize(item.fields.mood);
const feelings = DOMPurify.sanitize(item.fields.feelings);
Expand Down

0 comments on commit 000f877

Please sign in to comment.