// The AIEngine already generates structured raw HTML natively. // We apply some Tailwind classes to standard HTML tags to make them match the brand. function render_blog_content(string $content): string { // We do NOT use h() or htmlspecialchars here because we WANT the raw

tags the AI built. // Instead we just inject classes into the raw HTML. $content = preg_replace('/

/', '

', $content); $content = preg_replace('/

/', '

', $content); $content = preg_replace('/

/', '

', $content); $content = preg_replace('/