prettify

package
v2.12.2+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Wrap = wrapper{}

Functions

func Prettify

func Prettify(xml string) string

Prettify indents the given xml/html string. Be warned that it may change your html in incompatible ways, since it inserts whitespace between tags but inline elements and inline blocks behave differently if there is whitespace around them. So only use it to prettify the output. Only tags that are siblings are indented. If there is text around, they stay the same.

Types

This section is empty.

Jump to

Keyboard shortcuts

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