Is there a way to strip formatting from a Rich Text field when merging it into a Word document so that paragraph formatting is preserved?

 **Yes. This issue happens because Rich Text fields often contain embedded HTML elements (such as hard paragraph breaks). When this formatted content is merged into a Word document through Apsona, those HTML elements can override the existing Word paragraph style, causing formatting like indents to be lost.

To resolve this, you can use the @no_format tag in the merge field inside your Word template. The @no_format tag strips out embedded HTML formatting (including hard paragraph breaks) and allows the content to flow into the existing Word paragraph style instead of replacing it.

Example:
Instead of using a normal merge field, apply the @no_format tag to the field in the template so the text is merged as plain content without HTML formatting.

This ensures:

  • Paragraph indents and styles in Word are preserved.

  • Hard line breaks from the Rich Text field do not disrupt the layout.

  • The merged output appears consistent with the document’s formatting.**