I try to use a conditional to verify if a string contain a certain word, for example: I want to use a method (regex?) to find if a string has the text \"&SWE>cl
\"&SWE>cl
try this :
if (text1.indexOf('&SWE>clickable')>=0){ ... }
or regex way :
var re = new RegExp('\&SWE\>clickable') if (re.test(text1)){ ... }