In wonder if it is necessary to escape certain chars in the replacement string of a replace operation in Javascript. What I have is this:
let t = \"##links##\";
Dollar sign ($) is special in replace. If you want a single, literal dollar sign, use $$. Otherwise, the replacement string can include the following special replacement patterns:
$$Inserts a$.$&Inserts the matched substring.$`Inserts the portion of the string that precedes the matched substring.$'Inserts the portion of the string that follows the matched substring.$nWherenis a positive integer less than 100, inserts thenth parenthesized submatch string, provided the first argument was a RegExp object.