src/Charcoal/Translator/Translation.php
public function sanitize(callable $sanitizeCallback)
    {
        foreach ($this->val as $lang => $val) {
            $this->val[$lang] = call_user_func($sanitizeCallback, $val);
        }
        return $this;
    }
public function sanitize(callable $sanitizeCallback)
    {
        foreach ($this->val as $lang => $val) {
            $this->val[$lang] = call_user_func($sanitizeCallback, $val);
        }
        return $this;
    }
public function sanitize ( callable $ sanitizeCallback ) { foreach ( $ this -> val as $ lang => $ val ) { $ this -> val [ $ lang ] = call_user_func ( $ sanitizeCallback , $ val ) ; } return $ this ; }
Sanitize each language's string with a callback function.

The callback method signature is to take a string as parameter and return the sanitized string.

@param callable $sanitizeCallback The sanitizing function callback.
@return self
Sanitize each language s string with a callback function .