r-lib / ansistrings

Manipulation of ANSI colored strings
Other
9 stars 5 forks source link

Escape HTML? #19

Closed krlmlr closed 6 years ago

krlmlr commented 6 years ago

Is the following behavior intended? If the input is colored terminal text, we might want to escape the HTML, but I'm not sure about the dependencies this adds.

unclass(ansistrings::ansi_to_html("<tag>", fullpage = FALSE))
#> [1] "<tag>"

Created on 2018-02-27 by the reprex package (v0.2.0).

gaborcsardi commented 6 years ago

Yes. It only converts the ansi sequences, it does not touch the rest.