removeNoASCIIChars ( string text ) : string
Clean a text removing non-ASCII chars.
Example
To use this function, simply call it with the text you want to clean.
Example
// Original text with non-ASCII characters
originalText = "Hello, this is a test: ?, ?, ?, and ? symbols."
// Clean the text
cleanedText = removeNoASCIIChars(originalText)
// Print the cleaned text
console(cleanedText) // Output: "Hello, this is a test: , , , and symbols."
Parameters