Tagged “text”
-
TIL why you should always use textContent js text
Today I learned the difference between 'Node.textContent'. It handles all elements, even hidden ones. It also prevents XSS attacks since it strips tags.
-
TIL How to check if the string is uppercase js text
The magic is comparing str === str.toUpperCase()
See all tags.