mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
Merge pull request #58 from aspic/master
Explicit return byte array at end of function.
This commit is contained in:
commit
78dbffcfb7
3
html.go
3
html.go
|
@ -818,9 +818,8 @@ func sanitizeHtml(html []byte) []byte {
|
|||
func sanitizeTag(tag []byte) []byte {
|
||||
if tagWhitelist.Match(tag) || anchorClean.Match(tag) || imgClean.Match(tag) {
|
||||
return tag
|
||||
} else {
|
||||
return []byte("")
|
||||
}
|
||||
return []byte("")
|
||||
}
|
||||
|
||||
func skipUntilChar(text []byte, start int, char byte) int {
|
||||
|
|
Loading…
Reference in New Issue
Block a user