sanitize

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HtmlMdRenderer md.Renderer

Functions

func MarkdownToHTML

func MarkdownToHTML(markdown string) template.HTML

MarkdownToHTML : convert markdown to html TODO: restrict certain types of markdown

func Safe

func Safe(s string) template.URL

Safe : make un url safe

func SafeText

func SafeText(s string) template.HTML

SafeText : make a string safe

func Sanitize

func Sanitize(msg string, elements ...string) string

Sanitize :

Sanitize a message passed as a string according to a setted model or allowing a set of html tags and output a string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL