When counting text characters in HTML strings, you usually do not want to include the characters in the HTML markup code. While parsing HTML with RegExp does have its...
Read More
string
How do you replace all occurrences of a string?
Until the last few years, working with string replacement in JavaScript code required special tricks. That is no longer the case for major browsers. To replace all occurrences of...
Read More
Escaping your CSS selectors in the easiest way possible
When working a lot on dynamic Web Component apps I have often stumbled on cases where the element properties will be defined by the end-users. To prevent errors when...
Read More