[Python] How to get the generated HTML in FastHTML?

Discussão em 'Python' iniciado por Stack, Janeiro 29, 2025.

  1. Stack

    Stack Membro Participativo

    FastHTML returns HTML code in the response. But I want to know the generated HTML without using the response.

    Best with an example:

    from fasthtml import common as fh

    my_var=fh.P('This is a simple example!')


    How do I get the HTML content of my_var ?

    Continue reading...

Compartilhe esta Página