pub fn construct_text_no_codes(
    categorised_slices: &CategorisedSlices<'_>
) -> String
👎Deprecated: please use v3::construct_text_no_codes to move to API v3.0. this function will be removed with v3.0 of cansi
Expand description

Constructs a string of the categorised text without the ANSI escape characters.

Example

use cansi::*;
let categorised = categorise_text("\x1b[30mH\x1b[31me\x1b[32ml\x1b[33ml\x1b[34mo");
assert_eq!("Hello", &construct_text_no_codes(&categorised));