HYPE Javascript and REGEX

Is there any reason why i would get an error when using regular expressions on a string:

message: "Unexpected token '/'. Invalid regular expression."

element.innerHTML = element.innerHTML.replace(/<strong>/g, ''); element.innerHTML = element.innerHTML.replace(/</strong>/g, '');

you’ve got to escape the regular expression metacharacters …
in this case/</strong>/g


Thanks, knew it would have been something I missed. :smile: