gohtml
gohtml copied to clipboard
HTML formatter for Go
Hi! Thanks for creating the `gohtml` package. I'm using it in [Orbiton](https://github.com/xyproto/orbiton) for formatting HTML from within the editor. However, JavaScript code that is embedded within `` tags seems to...
```go package main import ( "fmt" "github.com/yosssi/gohtml" ) func main() { h := `Pre some code Post ` fmt.Println(gohtml.Format(h)) } ``` Prints ```bash Pre some code Post ``` I understand...
These may not be supported for prettifying: - Space at the end of a tag is left there: `````` - A script tag will not have its indentions formatted. The...
you provide a .Format(string) and .Format([]bytes) which both return string and []bytes respectively... but no way to pass in an io.Writer to write the bytes or string to, and no...