below is the sample output from applying templates. How can I programmatically remove the trailing spaces added due to the templates.
<first-name>Toni </first-name>
expected <first-name>Toni</first-name>
I tried looking for in the api formatting, could not find any. Any help using mustache templates library or another api to remove trailing spaces before the ending tag starts is appreciated.