what you needed to do was to change the quotes wrapping the string from double quotes to single quotes, instead you added sorta randomly quotes inside the string
and after changing the quotes wrapping the string to single quotes you can then remove the escape characters
this one
|
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";
|
and this one
and then remove the escape characters
this this this this
| | | |
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";