Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply

How to clean messy text in the column?

Hi there,

 

I have a messy text that has </...span/..div>... in it.  I need remove those charaters.  Below is the text that I need to clean, I also add the result that I want to archive.  It's appreciated if you could help out on the soultion.  thanks.

 

Text: <div class="ExternalClass2050E3CE38ED43F3B7CE1CA014A76EF2"><div style="font-family&#58;Calibri, Arial, Helvetica, sans-serif;font-size&#58;11pt;color&#58;rgb(0, 0, 0);"><span>Barbara likes reading, cooking, and travelling.</span><br></div></div>

 

Result: Barbara likes reading, cooking, and travelling.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

No need to clean anything. Parse the HTML.

 

lbendlin_0-1734733519302.png

 

let
    Source = Html.Table("<div class= ""ExternalClass2050E3CE38ED43F3B7CE1CA014A76EF2 ""><div style= ""font-family&#58;Calibri, Arial, Helvetica, sans-serif;font-size&#58;11pt;color&#58;rgb(0, 0, 0); ""><span>Barbara likes reading, cooking, and travelling.</span><br></div></div>",{{"Text","span"}})
in
    Source

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

No need to clean anything. Parse the HTML.

 

lbendlin_0-1734733519302.png

 

let
    Source = Html.Table("<div class= ""ExternalClass2050E3CE38ED43F3B7CE1CA014A76EF2 ""><div style= ""font-family&#58;Calibri, Arial, Helvetica, sans-serif;font-size&#58;11pt;color&#58;rgb(0, 0, 0); ""><span>Barbara likes reading, cooking, and travelling.</span><br></div></div>",{{"Text","span"}})
in
    Source

It worked, thank you!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors