I've searched through different websites showing me the way to replace strings in js. But actually its not working! Why?
The code I'm using:
var str = "This is html. This is another HTML";
str = str.replace('/html/gi','php');
Output: This is html. This is another html
Nothing is changing. Its Frustrating!
References I've used: