Add tidy_raw() helper
This commit is contained in:
@ -20,7 +20,7 @@ defmodule OutlookWeb.PublicComponents do
|
||||
<a href={"/autoren/#{@autor.id}"}>
|
||||
<div class="p-4 my-2 border rounded-lg border-stone-400 text-stone-800 dark:text-stone-300 ">
|
||||
<div class="font-bold"><%= @autor.name %></div>
|
||||
<div class=""><%= @autor.description %></div>
|
||||
<div class=""><%= @autor.description |> tidy_raw %></div>
|
||||
</div>
|
||||
</a>
|
||||
"""
|
||||
@ -36,7 +36,7 @@ defmodule OutlookWeb.PublicComponents do
|
||||
<h4 class="font-bold text-stone-800 dark:text-stone-300 py-2"><%= @artikel.title %></h4>
|
||||
<div :if={@show_author}><small><%= @artikel.article.author.name %></small></div>
|
||||
<div><small><%= @artikel.date |> Calendar.strftime("%d.%m.%Y") %></small></div>
|
||||
<div><%= @artikel.teaser |> raw %></div>
|
||||
<div><%= @artikel.teaser |> tidy_raw %></div>
|
||||
</div>
|
||||
</.link>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user