Escape characters in Set Variable in flow so that I can post to Slack

%3CLINGO-SUB%20id%3D%22lingo-sub-2067254%22%20slang%3D%22en-US%22%3EEscape%20characters%20in%20Set%20Variable%20in%20flow%20so%20that%20I%20can%20post%20to%20Slack%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2067254%22%20slang%3D%22en-US%22%3E%3CP%3ESo%2C%20I%20have%20a%20variable%2C%20I%20am%20carrying%20from%20the%20top%20-%20and%20I%20have%20an%20email%2C%20I%20capture%20the%20body%20from.%3C%2FP%3E%3CP%3ENow%20I%20want%20to%20post%20that%20body%20to%20slack%20-%20of%20course%2C%20I%20need%20to%20escape%20the%20HTML%20characters%20otherwise%20JSON%20format%20breaks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20use%20string%20functions%20inside%20this%20value%20area%3F%20Am%20I%20on%20the%20wrong%20track%20here%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20to%20all%20those%20who%20take%20the%20time%20to%20answer%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22_icy__0-1610811991819.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246933i13718B6CB87085B7%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22_icy__0-1610811991819.png%22%20alt%3D%22_icy__0-1610811991819.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHappy%20new%20year.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2067254%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evariables%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Visitor

So, I have a variable, I am carrying from the top - and I have an email, I capture the body from.

Now I want to post that body to slack - of course, I need to escape the HTML characters otherwise JSON format breaks.

 

How do I use string functions inside this value area? Am I on the wrong track here? 

 

Thanks to all those who take the time to answer :)

 

_icy__0-1610811991819.png

 

Happy new year.

 

0 Replies