Using XF 2.3 I'm programmatically adding a Post to an existing thread. The content of the new post is a phrase. The phrase includes an icon.
The problem I'm having is that the new post is showing the raw HTML for the icon. I've tried a few different changes and so far my attempts all result in either the raw HTML or the HTML for the icon being removed entirely.
Here's what I'm trying to do....
Phrase with the icon:
Variable in my code that grabs the phrase:
... and for creating the actual post I'm using the snippet from Chris in this post.
Here's the resulting post I'm getting...

My attempts so far at a solution feels more like I'm just stumbling in the dark so I'd really appreciate any help with this one.
Thanks
The problem I'm having is that the new post is showing the raw HTML for the icon. I've tried a few different changes and so far my attempts all result in either the raw HTML or the HTML for the icon being removed entirely.
Here's what I'm trying to do....
Phrase with the icon:
This listing has completed. {icon:fas::check}Variable in my code that grabs the phrase:
$archiveMessage = \XF::phrase('cinvin_complete_post_manual')->render();... and for creating the actual post I'm using the snippet from Chris in this post.
Here's the resulting post I'm getting...

My attempts so far at a solution feels more like I'm just stumbling in the dark so I'd really appreciate any help with this one.
Thanks