Issue with PDF Generation from Rich Text Editor Content

“Hello, I need to generate PDF files using content from a rich text editor. However, the template currently outputs plain text and includes the raw HTML tags (e.g., <p>, <strong>, etc.) in the content. What would be the recommended approach to correctly render this rich text in the generated PDF documents?”