Код: Выделить всё
from fasthtml import common as fh
app = fh.FastHTML()
@app.get('/mytest')
def home():
return fh.Div(
fh.H1("FastHTML APP"),
fh.P("My separated string"),
)
print (fh.to_xml(a))
return a
fh.serve()
< /code>
HTML отображается: < /p>
FastHTML APP
My separated string
< /code>
Но в браузере я вижу, что он отображается: < /p>
My separated stringвместо:
Код: Выделить всё
My separated stringПодробнее здесь: https://stackoverflow.com/questions/794 ... -fast-html