Add doctest for html function

Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
pull/3/head
parent 6152004356
commit 8a86c309de
Signed by: millironx
GPG Key ID: 139C07724802BC5D

@ -131,6 +131,17 @@ end #function
html(content...=nothing; kwargs...)
Creates a new HTML document filled with `content`.
# Example
```jldoctest
julia> import EzXML: prettyprint
julia> prettyprint(html())
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
<html/>
```
"""
function html(content...=nothing; kwargs...)
doc = EzXML.HTMLDocumentNode("about:legacy-compat", nothing)

Loading…
Cancel
Save