The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I had tried previously escaping the quotes. But escaping the codes as you described is breaking the anchor tag as below
<a href="#" 2x',4);'="" onclick="AddFreq(">3X</a>
Which should pass as
<a href="#" onclick="AddFreq('2x',4);' >3X</a>