Global.String.prototype.entitize ()
translates all characters of a string into HTML entities

  • Returns
    String translated result
Sourcecode in /home/hannes/helma/modules/core/String.js:
323:   String.prototype.entitize = function() {
324:       res.push();
325:       for (var i=0; i<this.length; i++) {
326:           res.write("&#");
327:           res.write(this.charCodeAt(i).toString());
328:           res.write(";");
329:       }
330:       return res.pop();
331:   }