---
updatedAt: 2025-07-15T08:32:59.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# Ionic Property: Parse HTML

How to set up the **Parse HTML** property for your mobile app

# Introduction

The **Parse HTML** property allows easy adapting any HTML code to your Ionic apps created with [Appery.io](https://appery.io) and is available for the **[Content](https://docs.appery.io/docs/2-creating-an-app-ui-pages-and-tabs#content-component)** and **[Html](https://docs.appery.io/docs/html)** components only.

# Working with *Parse HTML* Property

In this sample, using the **Parse HTML** property is demonstrated. For this example, we will use the **[Html](https://docs.appery.io/docs/html)** component.

1. In the **[DESIGN](https://docs.appery.io/docs/apperyio-visual-builder#design-panel)** panel of the **[App Builder](https://docs.appery.io/docs/apperyio-visual-builder)** **Screen1** page, go to the **[PALETTE](https://docs.appery.io/docs/1-creating-an-app-ui-palette#ui-components-palette-overview)** panel on the left.
2. Drag the **[Html](https://docs.appery.io/docs/html)** component and drop to the **[Content](https://docs.appery.io/docs/2-creating-an-app-ui-pages-and-tabs#content-component)** area.
3. Go to the **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** view on the right to check out the **Parse HTML** property.
4. Now, click the corresponding **Parse HTML** button.
5. The **Parse HTML** editor will open in the modal window:

<Image align="center" className="border" border={true} src="https://files.readme.io/56ddf6a-small-2023-05-12_16-00-56.png" />

Any HTML code can now be added to this editor and on clicking **Parse**, the added code will be automatically parsed to the [UI components](https://docs.appery.io/docs/ionic-5-ui-components-properties) offered by [Appery.io](https://appery.io) and inserted as child elements to the **[Html](https://docs.appery.io/docs/html)** component.

> 🚧 Important Note!
>
> * Parsing HTML code is a one-time procedure; after the code has been parsed, the popup will close and the source HTML code will become unavailable for reediting.\
>   However, all the created components can be customized according to your needs.
> * If some components cannot be parsed, they will be replaced by **HTML** or **TEXT** components with corresponding tags.
> * If some errors are found that interfere with parsing, the message informing about this error will be shown.

## Example: Parsing Sample HTML Code

As an example, we will use some sample code from [this](https://codepen.io/soufiane-khalfaoui-hassani/pen/LYpPWda) page.

1. We start by copying the HTML code to clipboard:

<Image align="center" className="border" border={true} src="https://files.readme.io/f0ac392-small-2023-05-12_16-07-57.png" />

2. Then, paste it into the HTML editor and confirm by clicking the **Parse** button.

<Image align="center" className="border" border={true} src="https://files.readme.io/95b9265-small-2023-05-12_16-02-44.png" />

> 👍 Transforming HTML inputs to Ionic components
>
> Note that it's recommended that the check box **Transform html inputs to Ionic components** be checked to allow full transformation:

<Image align="center" className="border" border={true} src="https://files.readme.io/94b248a-small-2023-05-12_16-03-09.png" />

3. Now, check that the parsing option did the trick but the UI part looks not very attractive as we did not apply any CSS style:

<Image align="center" className="border" width="30% " border={true} src="https://files.readme.io/430abbb-small-2023-05-12_16-04-38.png" />

So, let's do it now.

## Applying Styles

1. Go back to the [page](https://codepen.io/soufiane-khalfaoui-hassani/pen/LYpPWda) with the sample code and this time, copy the code from the **CSS** section:

<Image align="center" className="border" border={true} src="https://files.readme.io/31bf6e1-small-2023-05-12_16-07-578.png" />

2. Switch to the **[App Builder](https://docs.appery.io/docs/apperyio-visual-builder)**, open the page **[SCSS](https://docs.appery.io/docs/apperyio-visual-builder#scss-panel) panel** panel and paste the copied CSS code:

<Image align="center" className="border" border={true} src="https://files.readme.io/37e1f64-small-2023-05-12_16-05-39.png" />

3. To finalize and make everything work correctly, we need to add some custom style to the **[Html](https://docs.appery.io/docs/html)** component. It's done under the **Styles** tab of the component's **[PROPERTIES](https://docs.appery.io/docs/1-creating-an-app-ui-palette#properties-overview)** view:

<Image align="center" className="border" border={true} src="https://files.readme.io/e4dd7b6-small-2023-05-12_16-09-45.png" />

4. And then go back to the page **[SCSS](https://docs.appery.io/docs/apperyio-visual-builder#scss-panel) panel** panel and replace the *html*, *body* , and/or *:root* with the class we just created:

<Image align="center" className="border" border={true} src="https://files.readme.io/1f008a8-small-2023-05-12_16-12-14.png" />

Now, the HTML code is fully integrated and we can perform testing on preview:

<Image align="center" className="border" width="30% " border={true} src="https://files.readme.io/77d6486-Animation.gif" />