I'm creating a bridge between a CMS <-> XF and trying to reconcile the fact that the CMS uses (pseudo-)HTML and XF uses BbCode.
For now, I'm using XenForo_Html_Renderer_BbCode::renderFromHtml when posts from CMS needs to get written into XF (so CMS Html->XF BbCode). However, I'm wondering if there is a way to get the html (rendered by XF) returned back after the DataWriter saves so that I can save this as the CMS data.
The main reason why I want to be able to do this (please sanity check maybe there's a simpler method), is to allow the CMS users to utilize all BbCode available through XF and the Html to be consistent across both platforms.
So to simplify, if the process flow is:
pseudo-HTML -> [CMS Processor] -> CMS HTML
pseudo-HTML -> [XF's renderFromHtml] -> [Save to XF] -> [ Magic Process -> (Final Html from XF) ] -> CMS HTML
Thanks in advance and appreciate any pointers/suggestions!