> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# String: Decode HTML entities

> HTML decodes a string to human-readable text.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Turns HTML entity codes back into the real characters they stand for. HTML entities are the escaped codes that web systems use to safely store special characters, for example `&amp;` for an ampersand or `&lt;` for a less-than sign. Use this when a product title or description comes out of a web shop with these codes in it and you need clean, readable text in your target system. This is the opposite of encoding HTML entities.

This documentation describes: [Schema](/schemas/mapper/string-html-entity-decode)

## Fields

This mapper has no settings. It always decodes the whole value.

## Sample data

| Field  | Value                                    |
| ------ | ---------------------------------------- |
| (none) | decodes HTML entities back to characters |

Input:

```json theme={null}
{ "title": "Tom &amp; Jerry &lt;Special&gt;" }
```

Output:

```json theme={null}
{ "title": "Tom & Jerry <Special>" }
```

```json Configuration theme={null}
{
  "prototype": "string-html-entity-decode",
  "parameters": {}
}
```
