XF 2.2 Pushing HTML to a post via API?

Dannymh

Active member
Hi all,

Just wondering if there is a way to push a message into the Post API endpoint that has HTML in it, and that HTML is rendered on the end rather than displayed as text?

Trying to build a header into it which is limited when using the table bbcode so was hoping I could put it in the message and have it render?
At the moment I have tried pushing it in with html_entity_decode and htmlentities but just ends up as text in the message.

I know its probably a long shot, but I was hoping it could go in somewhat like the "Message parsed" response and be rendered, but it appears this may not be possible.

Cheers
Daniel
 

Lukas W.

Well-known member
At the end of the day, the message is stored as BB Code in the database, and any remaining HTML (however it got there), will be escaped and displayed as plain text, when next rendered from BB Code to HTML. If you're trying to have a custom HTML element that is not yet supported by BB Codes, try setting up a custom BB Code that fulfills your needs first.
 
Top