J'ai un modèle:Google App Engine: comment afficher le fichier html
class Product(db.Model):
...
file: db.BlobProperty() # Uploaded HTML file for product description
...
et je voudrais afficher dans une page en utilisant le système de template:
<div style="height:200px; overflow:auto;">{{product.file}}</div>
Cependant, cela montre un texte brut avec tous les balises HTML visibles. Comment afficher ce fichier correctement?
Greate! Problème résolu. Merci, RocketDonkey. –
@ Yuan-LiangTang Sure chose, heureux d'aider! – RocketDonkey