Sign in
cobalt
/
cobalt
/
6c8e6ca645585847723be8278a12b4ca8ab72d69
/
.
/
src
/
third_party
/
web_platform_tests
/
tools
/
py
/
doc
/
example
/
genhtml.py
blob: b5c8f525b62abd7a2aed718a406b63784ea75d10 [
file
] [
log
] [
blame
]
from
py
.
xml
import
html
paras
=
"First Para"
,
"Second para"
doc
=
html
.
html
(
html
.
head
(
html
.
meta
(
name
=
"Content-Type"
,
value
=
"text/html; charset=latin1"
)),
html
.
body
(
[
html
.
p
(
p
)
for
p
in
paras
]))
print
unicode
(
doc
).
encode
(
'latin1'
)