File: htmldecode.go

package info (click to toggle)
golang-github-ffuf-pencode 0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: makefile: 2; sh: 1
file content (19 lines) | stat: -rw-r--r-- 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package pencode

import "html"

type HTMLUnescaper struct{}

func (u HTMLUnescaper) Encode(input []byte) ([]byte, error) {
	out := html.UnescapeString(string(input))

	return []byte(out), nil
}

func (u HTMLUnescaper) HelpText() string {
	return "HTML unescape"
}

func (u HTMLUnescaper) Type() string {
	return "decoders"
}