I want to replace a certain string that contains text between '<' and '>'.
The funny thing is that .replace() works fine on practically any text, but when '<' is included in the string, it doesn't return a filtered string.
Here's some simple code to test it:http://jsfiddle.net/gy0y90g5/
What I've tried:
text only:
var res = str.replace('bijgevoegd>', "");
regex:
var res = str.replace(/bijgevoegd>/g, "");
Because jsfiddle won't display anything that's between < >
I've just added one '>' in the example.
Anyone knows whats up with this quircky behaviour?