Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in & conversion #80

Open
razzul opened this issue May 30, 2017 · 0 comments
Open

Bug in & conversion #80

razzul opened this issue May 30, 2017 · 0 comments

Comments

@razzul
Copy link

razzul commented May 30, 2017

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;');}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant