HTML formatting for order notes

2 years ago

I'm writing a plugin in version 4.0.
I'm adding a order note upon checkout. I want to use HTML formatting so the order note is displayed with line breaks.

When I look in the code. The Details view use

That's fine. But the model order note text is formatted with an extension method with a parameter
allowHtml == false
So the HTML is removed.
Why is this formatting added to the note?
Is there a way that I can add the line breaks from my plugin code, without having to alter core code?

1 year ago
I have this same issue. Would like to add a link in the order notes without changing the source code.