strip() function
strip() function
Section titled “strip() function”Removes all embedded ANSI terminal color format escape codes from a text segment.
Signature:
strip: (s: string) => stringParameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
s |
string |
Input string containing color tags. |
Returns:
string
Clean raw plaintext contents. *