When you want to replace all instances of a specific character in a text with another, many people intuitively use the replace() method. However, there is a "historical trap" hidden in JavaScript here ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results