Display Enhanced Rich Text without HTML in Content Control

  • 13 February 2017
  • 4 replies
  • 30 views

Badge +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

Badge +11

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?

Badge +3

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.

Badge +3

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.

Badge +16

Have you looked at getting document generation? 

Reply