ism highlighting
      const codeElement = document.createElement('code');
      codeElement.className = 'language-html';
      codeElement.textContent = formattedHTML;

      // Clear and append
      htmlDisplay.innerHTML = '';
      htmlDisplay.appendChild(codeElement);

      // Apply Prism highlighting
      if (window.Prism) {
        Prism.highlightElement(codeElement);
      }
    }

    // Manual HTML formatter as fallback
    function manuallyFormatHTML(html) {
      // Clean up and split by tags
