2 Commits

Author SHA1 Message Date
Unknwon
3a9276307c
modules/markup: move common functions to markup.go 2017-03-31 17:46:57 -04:00
Unknwon
761bb3cf53
modules/markup: protect sanitizer from possible modification
Only expose public APIs for 'Sanitize' and 'SanitizeBytes' to
eliminate unintentional modifications to sanitizer policy. Also
use 'sync.Once' to make sure multiple calls of 'NewSanitizer' is
safe (although should never happen, but this is a better way).
2017-03-31 16:19:10 -04:00