# striptags

Source: https://zotonic.com/docs/1568/striptags

URI: https://zotonic.com/id/1568

Language: en



Removes all HTML tags from the value.

Useful as part of filtering input from external sources.

For example:

```django
{{ value|striptags }}
```

When value is `<b>Hello</b>world` then the output will be `Helloworld`.

Striptags optionally allows a maximum length of characters to be returned:

```django
{{ value|striptags:80 }}
```

This returns a string truncated to max 80 characters, including whitespaces etc.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1568?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1568?language=en>)
