Skip to main content
Nintex Community Menu Bar

Display Enhanced Rich Text without HTML in Content Control

  • February 13, 2017
  • 4 replies
  • 80 views

Forum|alt.badge.img+3

I am using a WF to create a Word document (using a word template that has content controls) to print a form from a SharePoint list that includes the user responses when filling out the form.  Everything works well except any multi-line text fields (with enhanced rich text).  These all display the html along with the text in the content control and make it unreadable for most.

198771_pastedImage_1.png

Does anyone know a way to strip the HTML from the text before displaying?

I've been experimenting with inline functions in Nintex like 'XmlDecode', but no luck so far.

4 replies

Forum|alt.badge.img+11
  • Scholar
  • February 14, 2017

Hi B Casey

Please have a look at these posts:

Multi Text Field and Update Document Error 

Workflow Update Document Action - Rich Text duplicated 

It has been specified as a bug in one of the versions. What version are you on?


Forum|alt.badge.img+3
  • Author
  • February 14, 2017

We have version 3.1.6.0, so not the same version as the one reporting a bug, however, I'm seeing the same behavior in this version.

It does not duplicate anything for me, but does display all the html tags around and mixed in the rich text content that is sent to the Word doc content controls.


Forum|alt.badge.img+3
  • Author
  • February 16, 2017

I have a partial solution. 

I used a Query List Action to send the enhanced rich text field contents to a variable.

Then, just don't check the 'include html' box on the action settings.

This keeps some of the formatting, but removes the html.  It doesn't help with tables that are pasted into the field, but better than nothing.


Forum|alt.badge.img+16

Have you looked at getting document generation?