Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | modules/markup: move common functions to markup.go | Unknwon | 2017-03-31 |
| | |||
* | modules/markup: protect sanitizer from possible modification | Unknwon | 2017-03-31 |
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). |