Hi, I am having an issue escaping quotes. I've tried regexReplace with no solution.
Ex txt: Dimensions: "about_this_item": 27\" W x 24 1/2\" L
Weight: 20lbs ",
"value": "{{{regexReplace record.data.attributes.about_this_item "\'" "[\']"}}}
Hi, I am having an issue escaping quotes. I've tried regexReplace with no solution.
Ex txt: Dimensions: "about_this_item": 27\" W x 24 1/2\" L
Weight: 20lbs ",
"value": "{{{regexReplace record.data.attributes.about_this_item "\'" "[\']"}}}
@joseph I'm a bit confused what you're trying to do. What input data do you have an what is your desired output? Quote are automatically escaped because if they aren't, then it wouldn't be valid JSON.
Sorry, I should have explained that better. I'm having issues escaping double quotes.
I tried regex replace: “{{regexReplace record.data.[0].attributes.about_this_item ‘’ ‘"’}}” but this returns an error:
@joseph I see, so you want to completely remove double quotes from your html field, correct? Then it looks like it is doing that in the AFE editor output, but then fails when you actually run it?
Correct. I initially wanted to find a way to keep the double quotes and after multiple unsuccessful attempts I decided to remove the double quotes with regex replace but I'm unable to do that also. In the editor, it removes the double quotes once I run the flow it returns this error.
@joseph your handlebar is working for me. Are you sure the issue is with this field and not with another field or other part with your JSON output?