move sanitization code out of api package

This commit is contained in:
orangix
2026-01-25 06:25:21 +01:00
parent 02be603dcc
commit e241d35efe
7 changed files with 63 additions and 56 deletions

View File

@@ -11,7 +11,7 @@
{{/equal}}
</div>
<div>
<p>{{{this.Comment}}}</p>
<p>{{{sanitizeComment(this.Comment)}}}</p>
<div class="flex gap-2">
<span title="{{this.CreatedAt}}">{{relTime(this.CreatedAt)}}</span>
{{#ifNonZeroTime this.DeletedAt}}