mirror of
https://github.com/status-im/markdown.git
synced 2025-02-23 16:48:14 +00: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…
x
Reference in New Issue
Block a user