matthiask / django-prose-editor

ProseMirror-based HTML editor for Django
https://django-prose-editor.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
90 stars 6 forks source link

Whats the best way to render this content on the template? #8

Closed zft9xgy closed 1 month ago

zft9xgy commented 1 month ago

So, sorry for open an issue on this simple question.

Right now im using this model:

content = SanitizedProseEditorField()

And i render in django template like this:

{{obj.content | safe}}

Is this the right way to display the content?

Thank in advance.

matthiask commented 1 month ago

Yes, that's the way I do when rendering the content in a template.