strapdown icon indicating copy to clipboard operation
strapdown copied to clipboard

Bug in & conversion

Open razzul opened this issue 7 years ago • 0 comments

code is not converting correctly

if (in_array($this->bean->product_offering, $sugar_config['enterprise_mail_po'])) {

because of below line

function escape(html,encode){return html.replace(!encode?/&(?!#?\w+;)/g:/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');}

if I update the code like below its working fine

function escape(html,encode){return html.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;').replace(/'/g,'&#39;');}

razzul avatar May 30 '17 07:05 razzul