Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias authored Nov 7, 2023
1 parent 2f77e5d commit a6e6ee7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions examples/react-security-best-practices/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ For example:-

```Javascript
function validateURL(url) {

const parsed = new URL(url)

return ['https:', 'http:'].includes(parsed.protocol)

const parsed = new URL(url)
return ['https:', 'http:'].includes(parsed.protocol)
}

<a href={validateURL(url) ? url : '#'}>Click here!</a>
Expand Down

0 comments on commit a6e6ee7

Please sign in to comment.