> For the complete documentation index, see [llms.txt](https://docs.elentra.org/ejs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elentra.org/ejs/1.4/guide/internationalization/escl/functions/italic.md).

# ITALIC

## Introduction

The **ITALIC** [function](/ejs/1.4/guide/internationalization/escl/concepts/functions.md) allows a portion of a [string](/ejs/1.4/guide/internationalization/escl/concepts/string-resources.md) to be formatted with italicized text.  It accepts a single parameter for the string to be formatted.

## Usage

The **ITALIC** [function](/ejs/1.4/guide/internationalization/escl/concepts/functions.md) accepts a string and returns it wrapped in `<em></em>` HTML tags.  You may pass the identifier of another resource (such as a string, term, or variable), as its value will be resolved before executing the function.

## Example

In this example, `my_formatted_string` calls the **ITALIC** [function](/ejs/1.4/guide/internationalization/escl/concepts/functions.md), passing in the resource identifier `my_string` as its argument.  Instead of a [string](/ejs/1.4/guide/internationalization/escl/concepts/string-resources.md) resource identifier, you may also pass a [term](/ejs/1.4/guide/internationalization/escl/concepts/terms.md) or [variable](/ejs/1.4/guide/internationalization/escl/concepts/variables.md) identifier.

{% code title="ESCL Input" %}

```javascript
my_string: `Hello, World!`,
my_formatted_string: `{ ITALIC(my_string) }`
```

{% endcode %}

{% code title="ESCL Output" %}

```markup
<!-- my_formatted_string -->
<em>Hello, World!</em>
```

{% endcode %}
