Rich Text Editor content to be downloaded as word document

The requirement is as follows:

  1. we have a screen, in which, we have Rich Text Editor control, in this control user enters a plain text, tables and other details.

  2. On click of Submit button, System downloading the word document with the text entered in RTE control using create document smart shape.

  3. But the text downloaded is having html tags and the table is downloading as html text.

How to download the text and table as is entered by user to document?

any help would be highly appreciated, Thanks in advance…!!!

@AnjaneyuluG

Maybe the following links might help you:

https://support.pega.com/question/it-possible-remove-html-attribute-rich-text

https://support.pega.com/question/retrieving-content-without-html-tags

https://support.pega.com/question/how-remove-html-tags-string-while-displaying-rd

@AnjaneyuluG - Create a new section and pass the read only section for the word document generation. Or make use of below pega:include tags to remove the html tags getting displayed.

<pega:reference name=“myProperty” mode=“richtext” />

For more details about pega reference tag follow below link.

Thank you.

It is solved with below syntax:

<pegaref config={“format”:“RTE”,“name”:“.pyNote”,“type”:“P”}>