function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Chad DavisChad Davis 

Transferring Rich Text data to Long Text, Omitting the tags?

Hey I have a trigger that transfers a (long) Rich Text field {parent} to another (long) Rich text field {child}. The problem is that  from here, I need to send this to an outside application that cant handle rich text.  Is there any way, within the trigger, that I can still send the data from one Rich field but somehow keep the formating to the next Static Long text field while importantly leaving out the <html> tags that mess up the document?  I know its a long shot.. Thanks for any help. 

Chad Davis

Convert your field data to blob and then convert it to String. Now send this long text value.