---
title: debug.VisualizeSpaces
description: Returns the given string with spaces replaced by a visible string.
categories: []
keywords: []
params:
  functions_and_methods:
    aliases: []
    returnType: string
    signatures: [debug.VisualizeSpaces STRING]
---

<!-- Added in v0.112.0 -->

```go-html-template
{{ debug.VisualizeSpaces "foo  bar" }} → foo[SPACE][SPACE]bar
```
