Hello, I have an attribute expression like this :
var transactions = FeatureSetByRelationshipName($feature,"SDE.TRANSACTIONS")
//return transactions
// Build the pop-up string by iterating through all related features
var info = ''
for (var f in transactions){
info += "ID : " + DefaultValue(f.TRA_ADR_ID, 'no data') + TextFormatting.NewLine +
"Nom immeuble : " +
DefaultValue(f.TRA_NOM_IMMEUBLE, 'no data') + TextFormatting.NewLine +
"Montant : " +
DefaultValue(f.TRA_MONTANT, 'no data') + TextFormatting.NewLine +
"Acquéreur : " +
DefaultValue(f.TRA_ACQUEREUR, 'no data') + TextFormatting.NewLine + TextFormatting.NewLine
}
iif(isempty(info),'Pas de transactions','Transactions utilisateurs :'+TextFormatting.NewLine +TextFormatting.NewLine+info)
and it returns me that :

It's good for me but i want to improve my pop-up windows with some HTML.
So I try this code (it's only a short part of the code) :
var transactions = FeatureSetByRelationshipName($feature,"SDE.TRANSACTIONS")
var info = ''
for (var f in transactions){
info += "ID : " + DefaultValue(f.TRA_ADR_ID, 'no data') + TextFormatting.NewLine +
"Nom immeuble : " +
DefaultValue(f.TRA_NOM_IMMEUBLE, 'no data') + TextFormatting.NewLine +
"Montant : " +
DefaultValue(f.TRA_MONTANT, 'no data') + TextFormatting.NewLine +
"Acquéreur : " +
DefaultValue(f.TRA_ACQUEREUR, 'no data') + TextFormatting.NewLine + TextFormatting.NewLine
}
HTML += "<p style='text-align: left;'><span style='font-size: 16px; font-family: Calibri, sans-serif;'>"+"<strong>"+iif(isempty(info),'Pas de transactions',TextFormatting.NewLine +TextFormatting.NewLine+info)+"</strong></span></p>"
But it returns me this :

It seems that the TextFormatting.NewLine constants do not work in the arcade window but only in the attribute expressions window? Or did I make a mistake in my code?