Posted: 4 Nov 2019 2:35 EST Last activity: 18 Nov 2019 9:13 EST
Convert Plain text to HTML (RTE)
For my in flight cases, i have to copy the plain text details to a new field which is a Rich Text Editor. i am using a Data transform to copy the field but the details in Rich text editor field, comes in a plain text format only. Not in the way ,how it should be displayed in a rich text control.
kindly suggest if we can convert a plain text to HTML format in pega by some function or anything else
***Edited by Moderator Marissa to move from Pega Academy to Pega Support Community; update platform capability tags***
The Rich Text Editor is a basically a 'what-you-see-is-what-you-get' editor. If you feed it plain text it will only show you plain text. The editor with Advanced toolbar options does give you some options to preserve HTML markup/formatting if you are 'manually' copying from a source e.g. WORD , webpage etc. But there are 2 things I do not really understand about your configuration to be able to provide something more helpful here -
1. "i am using a Data transform to copy the field" - can you elaborate why you are doing this? Are you trying to automate the copy rather than do this manually?
2. What is the source from where you are copying? Is it a document? another field on the same screen?