Global.String.prototype.toFileName ()
function cleans the string passed as argument from any characters that are forbidden or shouldn't be used in filenames

  • Returns
    Boolean
Sourcecode in /home/hannes/helma/modules/core/String.js:
198:   String.prototype.toFileName = function() {
199:       return this.replace(new RegExp(String.FILEPATTERN.source, "g"), String.NULL);
200:   }