---
url: "https://vueda.dev/v3/reference/api/js/utils/html/functions/containsHtml.md"
title: "containsHtml"
---

# containsHtml

## Overview

Tests whether a string contains any HTML tags.

## Signature

`containsHtml(message)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-message">message</span> | `string` | yes | The string to test. |

### Returns

`boolean`

True if the string contains HTML tags.

## Source

`client/lib/utils/html.js:61`
