---
name: "function::text_str"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::text_str"
---

# function::text\_str(3stap)

Escape any non-printable chars in a string

## NAME

function::text\_str - Escape any non-printable chars in a string

## SYNOPSIS

```
    text_str:string(input:string)
```

## ARGUMENTS

*input*

the string to escape

## DESCRIPTION

This function accepts a string argument, and any ASCII characters that are not printable are replaced by the corresponding escape sequence in the returned string.

## SEE ALSO0

[*tapset::string*(3stap)](/tapset::string/3stap.md)
