[feature] Parse content warning as HTML, serialize via API to plaintext

This commit is contained in:
tobi 2025-03-06 15:36:58 +01:00
commit 22ce924129
47 changed files with 947 additions and 553 deletions

View file

@ -38,7 +38,9 @@
{{- if .SpoilerText }}
<details class="text-spoiler">
<summary>
<span class="spoiler-text p-summary" lang="{{- .LanguageTag.TagStr -}}">{{- emojify .Emojis (escape .SpoilerText) -}}</span>
<div class="spoiler-content p-summary" lang="{{- .LanguageTag.TagStr -}}">
{{ noescape .SpoilerContent | emojify .Emojis }}
</div>
<span class="button" role="button" tabindex="0">Toggle visibility</span>
</summary>
<div class="text">