I have a complex set of nested functions that substantially disinfect data.
Suppose I want to fix the firstname-lastname combination that was sanitized, but the names are presented as two separate variables.
I understand that I could just select each variable separately, wrapping each of the many sets of sanitation functions, but this is both inelegant and dangerous: large chunks of hard-to-read, duplicated code that need to synchronize the application lifetime.
In real language, I would write something like this:
${fn:trim(fn:replace(fn:replace(fn:replace(fn:replace(firstname + lastname, ..., ...), ..., ...), ..., ...), ..., ...))}
(Here, the plus is the blue concatenation operator, javascript '+', PHP '.', Etc.)
It also seems absurd to use a separate statement to simply concatenate variables in advance.
Bottom line: this question has been asked a thousand times on the Internet, but all answers effectively shy away from the question, suggesting an alternative implementation. I want to know if this function exists, and the documentation is worse than trivial.
Please stop my suffering and give me a direct answer.