Change Sanitize() to SanitizeBytes() in example
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