I neet to add URL as a link in Order Note

3 years ago
I neet add an URL in one Order note for the user can access their payment receipt, i try with

Order.OrderNotes.Add(new OrderNote
                Note = string.Format("You can download and print your card to pay in store <a href=\"{0}\">HERE</a>",URL),
                DisplayToCustomer = true,
                CreatedOnUtc = DateTime.UtcNow

But this did not work.
1 year ago
This is because orderNoteModels note is formatted by Nop.Core.Html.HtmlHelper.HtmlHelper.FormatText(text, false, true, false, false, false, false); which uses parameter allowHtml=false.

It appears this can be changed only by altering the source code.