cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xmarcus
Level: Powered On

replace expression to replace css style and escape characters

The following expression is not working on a body of html

 

replace(items('Posts')?['Body'],'margin:5px;','width:600px;')
 
If I get rid of the special characters as a test, I can replace margin with width successfully. But no combination of escaping is working to replace the entite margin string. Is there a reference for special characters and escaping them? I can't find anything.
1 REPLY 1
Community Support Team
Community Support Team

Re: replace expression to replace css style and escape characters

Hi @xmarcus,

 

According to your description, I assume that you could try to combine skip and split function to see if it will meet your request.

 

More details about the functions at here:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#s...

 

 

Best regards,

Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,930)