keep tinymce formatting

This commit is contained in:
julien
2026-02-22 21:42:47 +01:00
parent 7f10a2fa27
commit fd0f7d2bf9
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
{% for post in posts %} {% for post in posts %}
<div class="post"> <div class="post">
<h3>{{ post.title }}</h3> <h3>{{ post.title }}</h3>
<p>{{ post.content|nl2br }}</p> <p>{{ post.content|raw }}</p>
<div class="admin-actions"> <div class="admin-actions">
<a href="/admin/edit/{{ post.id }}">Éditer</a> <a href="/admin/edit/{{ post.id }}">Éditer</a>

View File

@@ -6,7 +6,7 @@
{% for post in posts %} {% for post in posts %}
<div class="post"> <div class="post">
<h2>{{ post.title }}</h2> <h2>{{ post.title }}</h2>
<p>{{ post.content|nl2br }}</p> <p>{{ post.content|raw }}</p>
</div> </div>
{% else %} {% else %}
<p>Aucun article publié.</p> <p>Aucun article publié.</p>