How To Use The Power Automate Html To Text Action

Power Automate HTML To Text Action

The Power Automate Html to text action removes HTML tags of a given HTML source and returns plain text.

In this article we provide an example on how to use the Html to text action in Power Automate. We will guide you through the creation of a Microsoft flow that uses the Html to text action.

Sample HTML for Power Automate Html to text example

We need some HTML to transform, to learn how to use HTML to text in Power Automate. This is a very simple example of HTML just for the demo purpose. Feel free to play around with any HTML you want to.

<div>
    <h1>HTML Sample page</h1>
    <h2>Intro</h2>
    <p>Hello <strong>Power Automate</strong></p>
    <h2>Outro</h2>
    <div>Bye <i>Power Automate</i></div>
</div>

Within a browser, the given HTML for our how to use HTML to text in Power Automate example will look like this:

power automate html to text sample html

How to convert HTML to text in Power Automate

In this simple example the HTML at the beginning of the article will be used to demonstrate, how to use the Html to text action in a Power Automate flow to generate plain text.

  1. Create a new flow, give it a name, select ‘Manually trigger a flow’ and click create

    power automate html to text create new flow

    Create a new flow

  2. Add new step by clicking on ‘+ New step’

    power automate html to text add new step

    Add a new step

  3. Search for compose and click on the Compose action

    power automate html to text add compose action

    Add Compose action

  4. Paste the HTML from the top of the article into Inputs text area

    power automate html to text paste html

    Paste HTML to Compose Inputs

  5. Add a new step, search for ‘html’ and click on the ‘Html to text’ action

    power automate html to text add htm l to text action

    Add Html to text action

  6. Click into the Content text area and click on Outputs

    power automate html to text set content

    Set Html to text inputs

  7. Do a test run and check the plain text generated from the given HTML

    power automate html to text do test run

    Power Automate Html to text example

Leave a Comment

Your email address will not be published. Required fields are marked *