mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Change Sanitize() to SanitizeBytes() in example
This commit is contained in:
parent
819f70a832
commit
8e739c7f0d
|
@ -65,7 +65,7 @@ import (
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
unsafe := blackfriday.MarkdownCommon(input)
|
unsafe := blackfriday.MarkdownCommon(input)
|
||||||
html := bluemonday.UGCPolicy().Sanitize(string(unsafe))
|
html := bluemonday.UGCPolicy().SanitizeBytes(unsafe)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Custom options
|
### Custom options
|
||||||
|
|
Loading…
Reference in New Issue
Block a user