// Renderizar el contenido como HTML Document htmlDoc = Jsoup.parse(jsfContent); String htmlContent = htmlDoc.outerHtml();