grooscript icon indicating copy to clipboard operation
grooscript copied to clipboard

Extra semicolons or missing them

Open chiquitinxx opened this issue 10 years ago • 0 comments

Sometimes extra semicolons...

if (gs.equals(gSswitch0, "&")) { gSobject.htmCd += "&amp;"; ; } else if (gs.equals(gSswitch0, "<")) { gSobject.htmCd += "&lt;"; ; } else if (gs.equals(gSswitch0, ">")) { gSobject.htmCd += "&gt;"; ; } else if (gs.equals(gSswitch0, "\"")) { gSobject.htmCd += "&quot;"; ; } else if (gs.equals(gSswitch0, "'")) { gSobject.htmCd += "&apos;"; ; } else { gSobject.htmCd += ch; ; };

Sometimes missing them...

gSobject['yieldUnescaped'] = function(text) {
    return gSobject.htmCd += text;
  }

chiquitinxx avatar Apr 18 '16 21:04 chiquitinxx