I am trying to make a custom BB code work but I can't get it right. I've asked Google AI and ChatGPT for help and neither could fix it. Here's the code:
Simple replacement
No option parameters
I've a font-awesome icon for it and sure enough when I click the icon in the text editor the tags appear but upon saving the post, there's nothing there. However, if I insert just one character between the tags in the text editor and then save, the text is there.
So what am I doing wrong?
Code:
<div style="font-size: 12px; font-style: italic; color: #8c8c8c; margin-top: 5px; border-top: 1px solid #eee; padding-top: 5px;">
<i class="fa--xf fa-solid fa-robot"></i> Admin note: Blah Blah </div>
Simple replacement
No option parameters
I've a font-awesome icon for it and sure enough when I click the icon in the text editor the tags appear but upon saving the post, there's nothing there. However, if I insert just one character between the tags in the text editor and then save, the text is there.
So what am I doing wrong?