---
title: ansi
description: Filters for processing ANSI colors.
---
## strip\_ansi

```python
def strip_ansi(
    source, term_queries:bool=False
):
```

*Remove ANSI escape codes, including OSC sequences such as hyperlinks, from text.*

## ansi2html

```python
def ansi2html(
    text
):
```

*Convert ANSI colors to HTML colors.*

## ansi2latex

```python
def ansi2latex(
    text
):
```

*Convert ANSI colors to LaTeX colors.*
