I want to find the difference between two strings in Javascript.
Given two strings
var a = "<div>hello</div><div>hi</div><div>bye/</div>";
var b = "<div>hello</div><div>hi</div>";
The result should be "<div>bye</div>".
Like in formula:
var result = a - b;
& I need this implementation in Javascript (Is there any default method is available for this in JS??)
Can anyone help me out?