package
0.0.0-20160811013010-f9b7dc669fde
Repository: https://github.com/m3ng9i/go-utils.git
Documentation: pkg.go.dev
# Functions
Convert a relative url to an absolute url base on a base url.
Convert an html doc's urls from relative to absolute base on a base url.
Convert text to html
Example:
text := `
First line
Second line
Third line
<b id="html">line contains html</b>
`
html := Text2Html(text)
now html will be:
<p>First line</p><p>Second line<br>Third line</p><p><b id="html">line contains html</b></p>
*/.