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 Apps
Answered

HTML Tags issues

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, newbie here.

 

I'm trying to develop an automatic mail app. The user select the model of mail he wants and choose the parameters. 

 

The body of the mail is then load from a Sharepoint List (Column Body of 'Hermes - DB' list) into a RichTextEditor for preview and modifications if its needed. The body already includes the variables (e.g. "&DatePicker1.SelectedDate").

 

The issue is when loading the body into the Editor, the HTML tags are still present (right side of the Picture), its not convert into a html text. But if I copy paste the text into another Editor (left side) it's working. 

Vigo_0-1636640953118.png

The code of the right side Editor : 

 

 

Switch(
 Concat(ComboBox1.SelectedItems; Title&""); 
 LookUp('Hermes - DB'; ID = 1).Title; 
 LookUp('Hermes - DB'; ID = 1).Body)

 

 

The code of the left side :

 

 

"<p>Bonjour,</p>
<p>Pourriez-vous préparer les clés suivantes au nom de <strong>"
& With({str:Concat(ComboBox2.SelectedItems;'Nom/Prénom1'&", ")};Left(str;Len(str)-2))
&"</strong> pour le <strong>"
& DatePicker1.SelectedDate
&":</strong></p>
<p style=""line-height: 0.5; margin-left: 20px;""><strong>-&nbsp;</strong>1 PASS TECHNIQUE PHS</p>
<p style=""line-height: 0.5; margin-left: 20px;"">- 1 PASS BUREAU PHS</p>
<p style=""line-height: 0.5; margin-left: 20px;"">- 1 PASS TELECOM AVEC BADGE</p>
<p>Cordialement, lol</p>
<p><br></p>"

 

 

How may i convert it while loading the text from the sharepoint list ?

 

Thank you for your help

 

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    If i use the PlainText() function, it will not keep my variable logic.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    I've made a test but did not encountered the problem you mentioned(HTML tags are correctly recognized):

    Could you please show me your SP list?

    Here is my tests
    1\My SP list:

    vbofengmsft_0-1636944043259.png

    2\My APP

    vbofengmsft_0-1636944716557.png

    Best Regards,

    Bof

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-bofeng-msft 

     

    Thank you for your answer.

    Here is the record of my SP list : 

    Vigo_0-1637056739254.png

    Thank you !

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Please turn of this feature(Please save the data first to prevent data loss😞

    vbofengmsft_0-1637142025944.png

    Best Regards,

    Bof

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-bofeng-msft ,

    It resolves a bit of the problem, thank you !!

     

    But the problem with my functions inside the HTML text remains. It prints &With ... instead of doing it.

     

    Sincerely, 

    Vigo

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    This is to be expected. PowerApp formulas need to be manually entered in the code bar to take effect,the text format formula is not recognized.

    Best Regards,

    Bof

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard