Hi
I have a RichText column in a SharePoint list where users enter Hyperlinks. one or many.
The data i have gotten out is the following.
Unformatted data
<div class="ExternalClassB970DA15388D4825835915ED4047D6F0"><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:11pt;color:rgb(0, 0, 0);"><span style="color:rgb(255, 255, 255);"><div style="margin-top:14.6667px;margin-bottom:14.6667px;"><a href="https://google.se/" title="File 1">File 1</a><div style="margin-top:14.6667px;margin-bottom:14.6667px;"><a href="https://google.com/" title="File 2">File 2</a><br></div><br></div><div style="margin-top:14.6667px;margin-bottom:14.6667px;"><a href="/sites/removed/_layouts/15/google.se" title="File 1"></a></div></span></div></div>
I then use a HTML to text
First file [https://google.com/]Second file [https://google.se/]
/sites/removed/_layouts/15/google.se
Then Compose = uriComponent(body('Html_to_text'))
First%20file%20%5Bhttps%3A%2F%2Fgoogle.com%2F%5DSecond%20file%20%5Bhttps%3A%2F%2Fgoogle.se%2F%5D%0A%0A%0A%0A%2Fsites%2Fremoved%2F_layouts%2F15%2Fgoogle.se%0A%0A
Then Compose = split(outputs('Compose_-_URI_Encode'),'%0A')
[
"First%20file%20%5Bhttps%3A%2F%2Fgoogle.com%2F%5DSecond%20file%20%5Bhttps%3A%2F%2Fgoogle.se%2F%5D",
"",
"",
"",
"%2Fsites%2Fremoved%2F_layouts%2F15%2Fgoogle.se",
"",
""
]
Then Compose = decodeUriComponent(first(outputs('Compose_-_Split_Encoded_Line_Break')))
"First file [https://google.com/]Second file [https://google.se/]"
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)
Can anyone help me achieve this?