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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
wcarter
Advocate I
Advocate I

How to escape <br/> in data?

I am pulling data from a sql database and have some custom strings I am generating. One of them contains HTML line breaks, <br/> but when I import into my report those breaks are parsed as actual line breaks. I need to preserve them in the text and displayed in the table  and preserved when exporting to csv. How can I stop Power BI parsing html contained in a cell and treat it as plain-text?

1 REPLY 1
amitchandak
Super User
Super User

@wcarter , Based on what i got.

 

Make sure the datatype in Power Query is Text. Use Clean or replace to remove <Br/>

 

Power Query Replace Value: https://youtu.be/hkZhZbR7Kmk

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.