mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-06-21 00:20:57 +00:00
feat: comment text to HTML with sanitization
This commit is contained in:
parent
3b79efc83c
commit
11efaf854d
2 changed files with 5 additions and 2 deletions
|
@ -1,7 +1,9 @@
|
|||
package types
|
||||
|
||||
import "html/template"
|
||||
|
||||
type FilteredComment struct {
|
||||
Text string
|
||||
Text template.HTML
|
||||
Timestamp string
|
||||
AuthorName string
|
||||
AuthorURL string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue