Ace.Tern icon indicating copy to clipboard operation
Ace.Tern copied to clipboard

Use Ace Libraries where possible

Open Sevin777 opened this issue 9 years ago • 0 comments

There is a lot of functionality that is using custom functions that can be replaced by Ace's built in libs. Examples:

  • escape html in ace/lib/lang
exports.escapeHTML = function(str) {
    return str.replace(/&/g, "&#38;").replace(/"/g, "&#34;").replace(/'/g, "&#39;").replace(/</g, "&#60;");
};
  • dom lib

Sevin777 avatar Dec 12 '14 09:12 Sevin777