[1] "<span style='color: #949494;'># <U+2026> with 5 more variables: total_time </span><span style='color: #949494; font-style: italic;'>&lt;bch:tm&gt;</span><span style='color: #949494;'>, result </span><span style='color: #949494; font-style: italic;'>&lt;list&gt;</span><span style='color: #949494;'>, memory </span><span style='color: #949494; font-style: italic;'>&lt;list&gt;</span><span style='color: #949494;'>,</span>"
[2] "<span style='color: #949494;'>#   time </span><span style='color: #949494; font-style: italic;'>&lt;list&gt;</span><span style='color: #949494;'>, gc </span><span style='color: #949494; font-style: italic;'>&lt;list&gt;</span>"

# head <- "<html><head><meta charset='utf-8'/></head><pre>"
# writeLines(c(head, fansi::sgr_to_html(string3), "</pre></html>"), f)

Argument `x` contains an illegal non-ASCII byte at index [2], see `?unhandled_ctl`.

Error in to_html_int(x = x, warn = warn, term.cap = term.cap, classes = classes,  : 
  Argument `x` contains an illegal non-ASCII byte at index [2], see `?unhandled_ctl`.

html_esc(c("h&e'l\"lo", "wor<ld>s", NA, ""), x)

Argument `what` may only contain ASCII characters "&", "<", ">", "'", or "\"".

Error in html_esc(c("h&e'l\"lo", "wor<ld>s", NA, ""), x) : 
  Argument `what` may only contain ASCII characters "&", "<", ">", "'", or "\"".