Added .html function. Issue #527 and #619