htmlenc

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunDecode

func RunDecode(w io.Writer, args []string, opts Options) error

RunDecode decodes HTML entities

func RunEncode

func RunEncode(w io.Writer, args []string, opts Options) error

RunEncode encodes text as HTML entities

Types

type Options

type Options struct {
	JSON bool // --json: output as JSON
}

Options configures the html encode/decode command behavior

type Result

type Result struct {
	Input  string `json:"input"`
	Output string `json:"output"`
	Mode   string `json:"mode"` // "encode" or "decode"
}

Result represents the output for JSON mode

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL