Replace w3 with eww
For in-line formatting of HTML texts. Check the ugly cases, such as setting background color and "forgetting" a closing tag.
This code renders html:
(eww-display-html 'utf-8 base-url
(libxml-parse-html-region (point-min) (point-max))
(point-min)
(current-buffer))
Check for the presense of libxml-parse-html-region
.