[1] "A<span style='background-color: #BB00BB;'><B</span>"                                                
[2] "<span style='background-color: #BB00BB;'>A</span><span style='background-color: #0000BB;'>>B</span>"
[3] "<span style='background-color: #0000BB;'>A</span><span style='background-color: #BBBB00;'>&B</span>"

Warning in to_html_int(x = x, warn = warn, term.cap = term.cap, classes = classes,  :
  `x` contains unescaped HTML special character '<' at index [1] (see ?html_esc); you can use `warn=FALSE` to turn off these warnings.
Warning in to_html_int(x = x, warn = warn, term.cap = term.cap, classes = classes,  :
  `x` contains unescaped HTML special character '>' at index [2] (see ?html_esc); you can use `warn=FALSE` to turn off these warnings.

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>

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>

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

[1] "A<span style='background-color: #BB00BB;'>&lt;B</span>"                                                 
[2] "<span style='background-color: #BB00BB;'>A</span><span style='background-color: #0000BB;'>&gt;B</span>" 
[3] "<span style='background-color: #0000BB;'>A</span><span style='background-color: #BBBB00;'>&amp;B</span>"

Argument `x` contains a CSI SGR sequence with unknown substrings or a OSC hyperlink with unsupported parameters at index [2], see `?unhandled_ctl`; you can use `warn=FALSE` to turn off these warnings.