Extract text value from Rich Text Editor saved value

Hi Team,

I have a rich text editor in my interface and its value is saved as "text" in DB with all the tags (that includes bullets, colors, background color, highlight etc ).

I want to extract only the text part of the data.

How can I do this?

Like if the value is saved as "<div>Assigned to <em style="color: rgb(0, 71, 178);">XYZ</em></div>" , I only want "Assigned to XYZ".

striphtml() function throws error.

Appian version 21.1

  Discussion posts and replies are publicly visible