Argument `classes` must be TRUE, FALSE, or a character vector.

Error in to_html_int(x = x, warn = warn, term.cap = term.cap, classes = classes,  : 
  Argument `classes` must be TRUE, FALSE, or a character vector.

Argument `classes` must be length 16, 32, or 512 if it is a character vector (is 7).

Error in check_classes(classes) : 
  Argument `classes` must be length 16, 32, or 512 if it is a character vector (is 7).

sgr_to_html("\033[31mhello\033[31m", classes = rep(NA_character_, 
    16))

Error in check_classes(classes) : Argument `classes` contains NA values.

sgr_to_html("\033[31mhello\033[31m", classes = rep("bad class", 
    16))

Argument `classes` contains charcters other than ASCII letters, numbers, the hyphen, and underscore.

Error in check_classes(classes) : 
  Argument `classes` contains charcters other than ASCII letters, numbers, the hyphen, and underscore.

Argument `rgb.mix` must be a 3 x 3 numeric matrix with no NAs.

Error in make_styles(class.8, c(1, 1, 0, 0, 0, 1, 1, 0, 0)) : 
  Argument `rgb.mix` must be a 3 x 3 numeric matrix with no NAs.

Error in make_styles(class.8, matrix(c(0, 1, 0, 0, 0, 1, 1, 0, NA), 3)) : 
  Argument `rgb.mix` must be a 3 x 3 numeric matrix with no NAs.

Error in make_styles(class.8, "hello") : 
  Argument `rgb.mix` must be a 3 x 3 numeric matrix with no NAs.

Argument `classes` must be length 16, 32, or 512 if it is a character vector (is 26).

Error in check_classes(classes) : 
  Argument `classes` must be length 16, 32, or 512 if it is a character vector (is 26).

Error in make_styles(NULL) : Argument `classes` is not character.

A<span style='background-color: #BB00BB;'><B</span>
<span style='background-color: #BB00BB;'>A</span><span style='background-color: #0000BB;'>>B</span>
<span style='background-color: #0000BB;'>A</span><span style='background-color: #BBBB00;'>&B</span>

`x` contains unescaped HTML special character '<' at index [1] (see ?html_esc); you can use `warn=FALSE` to turn off these warnings.

`x` contains unescaped HTML special character '>' at index [2] (see ?html_esc); you can use `warn=FALSE` to turn off these warnings.