Data handling in docx from dynamic template

Certified Associate Developer

Hi All,

How to handle the '&' in data, while using the docx from dynamic template.

I am already using the toHtml() and expression rule for escaping xml characters but after that also '&' is converting into '&'

and

if I don't use toHtml() and expression rule for escaping xml characters, then i got the error in dynamic template as"The entity name must immediately follow the '&' in the entity reference.".

Please suggest.

  Discussion posts and replies are publicly visible