presenter

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presenter

type Presenter struct {
	// contains filtered or unexported fields
}

func New

func New(shortIDService shortid.Service, sanitizerService sanitizer.Service) *Presenter

func (*Presenter) ContentHTML added in v0.4.0

func (p *Presenter) ContentHTML(input string) string

Sanitizes input to a very restricted HTML subset for content of type HTML Shortcut for p.sanitizerService.ContentHTML()

func (*Presenter) EncodeID

func (p *Presenter) EncodeID(id entities.ID) string

func (*Presenter) EncodeIDList

func (p *Presenter) EncodeIDList(ids []entities.ID) []string

func (*Presenter) ParseID

func (p *Presenter) ParseID(id string) (entities.ID, error)

func (*Presenter) String added in v0.4.0

func (p *Presenter) String(input string) string

Sanitizes input to a plain string. Shortcut for p.sanitizerService.String()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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