cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimmyWork
Memorable Member
Memorable Member

Extracting multiple URLs from html body

Getting my data from an enhanced multi string column in SharePoint. This column contains hyperlinks.

What I want to do is extract the URL's and convert them into markdown links that is supported by Teams Adaptive cards.

 

For Hyperlinks to work and display correctly in a Teams Adaptive card the following format is needed.

[I'm an inline-style link](https://www.google.com)

This is an sample of the data I get out today, where I need to extract the URL's and the title and format it to the Teams Adaptive cards markdown for links.

 

Sample data

<div class="ExternalClassB78FACFB4D354E9989D997809F5C160A"><a href="/&#58;u&#58;/r/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg?csf=1&amp;web=1&amp;e=6QhPSU" title="Link to file 1"><span style="color&#58;rgb(255, 255, 255);">​</span>Link to file 1</a></div><div class="ExternalClassB78FACFB4D354E9989D997809F5C160A"><div style="margin-top&#58;14px;margin-bottom&#58;14px;"><a href="/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg" title="Link to file 2">Link to file 2</a><p><br></p><div style="margin-top&#58;14px;margin-bottom&#58;14px;"><a href="https&#58;//www.google.com/" title="Link to file 3">Link to file 3</a><br></div><a href="/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg" title="Link to file 2"></a></div><a href="/&#58;u&#58;/r/sites/DEMO/Illustrations/150Hz_modulation_predominant.svg?csf=1&amp;web=1&amp;e=6QhPSU" title="Link to file 1"></a></div>

 

I would like to state that for some reason when links are inside the own tenant power automate removes the https://
https://powerusers.microsoft.com/t5/Building-Flows/Power-Automates-removes-https-on-it-s-own-if-the-...

 

1 ACCEPTED SOLUTION

Accepted Solutions
JimmyWork
Memorable Member
Memorable Member
1 REPLY 1
JimmyWork
Memorable Member
Memorable Member

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,970)