Solved
Forum Discussion
aditya_gupta41
3 years agoContributor
We are converting an xml into a csv text file, and the requirement is to change font type to Arial and font size to 11 as per the business requirement.
Now is there a way that we can change it via Snaplogic?
Please Note: The output will be a “.txt” file.
The next release of the platform will have an expression language function for converting characters to their HTML entities. Until then, I think most people use replace() to do the substitution on the string, like so:
$msg.replaceAll('&', '&').replaceAll('<', '<').replaceAll('>', '>')
Or, the slightly fancier:
$msg.replace(/&|<|>/g, m => match m { '&' => '&', '<' => '<', '>' => '>' })