# ivyforms/1.1/frontend/src/constants/html-sanitization.ts

The Innovative Form Builder – IvyForms, version 1.1. 37 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/1.1/code/frontend/src/constants/html-sanitization.ts
- Raw: https://pluginprobe.com/plugins/ivyforms/1.1/raw/frontend/src/constants/html-sanitization.ts
- Modified: 2026-03-02T13:43:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/1.1/code/frontend/src/constants/html-sanitization.ts#L10-L20`.

```typescript
/**
 * HTML Sanitization Constants
 * Used for sanitizing HTML content in form fields
 */

export const ALLOWED_HTML_TAGS = [
  'p',
  'br',
  'strong',
  'b',
  'em',
  'i',
  'u',
  'a',
  'ul',
  'ol',
  'li',
  'h1',
  'h2',
  'h3',
  'h4',
  'h5',
  'h6',
  'blockquote',
  'code',
  'pre',
  'span',
  'div',
  'img',
]

export const ALLOWED_HTML_ATTR = {
  global: ['class', 'style'],
  a: ['href', 'target', 'rel'],
  img: ['src', 'alt', 'width', 'height'],
}

```
