Flow Designer - Transform Function - Replace string not working on HTML field type

Ashby0003
Tera Guru

Hi, 

I am working on a payload for an API call and need to add an exit character before every ' (apostrophe).

I'm using flow designer and successfully used the "replace string" transform function for string fields but now am working on doing the same thing for a HTML field.

so for an example. 

"<p>testing thing's is so much fun. Thankfully that's Randy's job </p>"
 
I need to dynamically add a \ in front of every '
 
"<p>testing thing\'s is so much fun. Thankfully that\'s Randy\'s job </p>"
 
Unfortunately the built in "transform function" doesn't seem to be working with HTML fields.
 
Any ideas?
8 REPLIES 8

Maik Skoddow
Tera Patron
Tera Patron

Hi @Ashby0003 

please share the configuration  of the transform function.

Kind regards
Maik

find_real_file.png

 

Hi, this is how I have it setup. it works for string field types but not html.

Ben28
Tera Contributor

Did you ever figure this out? I want to do something similar, only remove all HTML tags.

CStaples
Tera Contributor

Hi Ben!  Is this still a goal of yours?  I'm betting that the issue may be that you're trying to perform a Regex on an HTML field.  So you would likely need to store the contents in a variable before transforming them.