mirror of
https://github.com/documize/community.git
synced 2025-08-02 20:15:26 +02:00
refactored smart section code
This commit is contained in:
parent
5acfae3d0d
commit
3defc062bd
40 changed files with 172 additions and 306 deletions
|
@ -14,6 +14,7 @@ package convert
|
|||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/documize/community/core/api/convert/html"
|
||||
"github.com/documize/community/core/api/plugins"
|
||||
api "github.com/documize/community/core/convapi"
|
||||
|
@ -53,7 +54,7 @@ func Convert(ctx context.Context, xtn string, fileRequest *api.DocumentConversio
|
|||
/* TODO add sanitisation for body & title HTML
|
||||
var titlePolicy, bodyPolicy *bluemonday.Policy
|
||||
|
||||
func init() {
|
||||
func xxx() {
|
||||
policy := bluemonday.UGCPolicy()
|
||||
policy.RequireNoFollowOnLinks(true)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue