thymeleaf/thymeleaf — pull request #134 by sunil0791 (2013-03-08 13:55:15+00:00)
Title: Add new method(multipleReplace) in #strings

Enhanced version of replace method:
Use Case:
>>Consider i want to replace " " with "-" and "." with "@" of the word
"Ap p.le", it would'nt be possible using replace.
>>using ${#strings.multipleReplace('Ap p.le',{' ','.'},{'-','@'})}
>> output will be "Ap-p@le"

Useful in providing href link which contains product name in URL where
in we have to replace " " and "." to "-" for SEO in web applications.

The file is formatted using Eclipse which has removed blank spaces in the file (by default) and has arranged the code. please look for multipleReplace method