web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / HTML code shows in bod...
Power Apps
Answered

HTML code shows in body of email

(0) ShareShare
ReportReport
Posted on by 53

I have a gallery that pulls from a SharePoint list.  The list was created from a large pre-existing excel spreadsheet.  One of the columns is HTML Text.  I want to send the value of this column in an email when a button is pressed but keep getting the HTML code wrapped around the value.

 

Button Code:

Office365Outlook.SendEmail(User().Email, 'Retailer Name' & " information", DataCardValue1.Text & Char(10) & HtmlText2.HtmlText)

 

Result:

Data from Card Value 1

<div>030301</div>

 

How do I get the email to remove the <div> and </div>?

 

Thanks, I'm a Power Apps newbie....

Categories:
I have the same question (0)
  • Verified answer
    PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @scottypotty4x4 ,

     

    Please try the below code. 

    Office365Outlook.SendEmail(User().Email, 'Retailer Name' & " information", DataCardValue1.Text & Char(10) & HtmlText2.HtmlText,{IsHtml:true})

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • scottypotty4x4 Profile Picture
    53 on at

    It worked but now my carriage returns (Char(10)) no longer works.  Please advise

  • scottypotty4x4 Profile Picture
    53 on at

    I was able to figure it out replacing Char(10) with <br>

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard