Jump to content
  • 0

[FYI] Removing HTML tags to data inputs using RICH text editor using Trigger/TASK


Wikiwi
 Share

Question

If any of you uses RICH text editor for user inputs, you will notice that the actual data in the table contains HTML tags that describes the format used with the input.

Ex.

image.png.23a30977b054257665c87106b814cff8.png

Will have the following data in your table:

image.png.3da4532191e226c63485bca316e21661.png

 

If you want a "clean" version of this text you can create a trigger/task that will remove the HTML tags. You can copy the Trigger below:

image.thumb.png.0b7a140e2f554a82512891776ac8bbb2.png

The "formatted_txt" will be the field that uses the Rich text editor and the non_formatted_txt_trigger will contain the "clean" text version. 

image.png.b9a7695d69113d8ac2fd4697bc186476.png

Rich text editor will convert < and > to their entity name which are &lt; and &gt; and a "Non-breaking space" will be converted to: &nbsp;. The following blocks will replace this entity name to their actual value.

image.png.5707ef802f0baee150dc0464fc103c92.png

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...