Source File
esc.go
Belonging Package
github.com/russross/blackfriday/v2
package blackfriday
import (
)
var htmlEscaper = [256][]byte{
'&': []byte("&"),
'<': []byte("<"),
'>': []byte(">"),
'"': []byte("""),
}
func ( io.Writer, []byte) {
var , int
for < len() {
:= htmlEscaper[[]]
if != nil {
.Write([:])
.Write()
= + 1
}
++
}
if < len() && <= len() {
.Write([:])
}
}
func ( io.Writer, []byte) {
:= html.UnescapeString(string())
escapeHTML(, []byte())
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |