The Ale function has a built-in
Ale.filter function that filters sensitive information every time a DOM update is made.
In Ale, the filter is a queue. Each time you call the
Ale.filter function, the filter function is automatically inserted into the queue. You can add filters this way:
/* The filter function takes a parameter and you can pass in a function. But this function must have a parameter, and then return the filtered result with return */
In the above example, we added a global filter that filters out all the numbers. Now you can type
app.data.str = "new message123" in the console to see what the filter does.