# HTML strip pipeline isn't working

**URL:** <https://discuss.elastic.co/t/html-strip-pipeline-isnt-working/313288>\
**Category:** Kibana\
**Tags:** ingest-pipeline\
**Created:** [August 30, 2022, 8:19pm UTC](https://discuss.elastic.co/t/html-strip-pipeline-isnt-working/313288 "2022-08-30T20:19:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wpm/32/110146_2.png) [@wpm](https://discuss.elastic.co/u/wpm)\
**Post date:** [August 30, 2022, 8:19pm UTC](https://discuss.elastic.co/t/html-strip-pipeline-isnt-working/313288/1 "2022-08-30T20:19:52Z")

</div>

I'm trying to write a pipeline that strips HTML. I can't get it to work, and it's so simple I don't know what could be wrong.

```auto
GET /_ingest/pipeline/simple
{
  "simple": {
    "processors": [
      {
        "html_strip": {
          "field": "column"
        }
      }
    ]
  }
}

POST /simple/_doc
{
  "column": "LOREM<br/>IPSUM"
}
[...It works...]

GET simple/_search
{
    "query": {
        "match_all": {}
    }
}

{
  "took": 0,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 1,
      "relation": "eq"
    },
    "max_score": 1,
    "hits": [
      {
        "_index": "simple",
        "_id": "nHpm8IIBBoxb0mlM5UtC",
        "_score": 1,
        "_source": {
          "column": "LOREM<br/>IPSUM"
        }
      }
    ]
  }
}

```

But if I use the simulate API it works.

```auto
GET /_ingest/pipeline/simple/_simulate
{
  "docs": [
    {
      "_source": {
        "column": "LOREM<br/>IPSUM"
      }
    }
  ]
}
{
  "docs": [
    {
      "doc": {
        "_index": "_index",
        "_id": "_id",
        "_version": "-3",
        "_source": {
          "column": """LOREM
IPSUM"""
        },
        "_ingest": {
          "timestamp": "2022-08-30T20:18:59.183445298Z"
        }
      }
    }
  ]
}

```

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [August 30, 2022, 8:47pm UTC](https://discuss.elastic.co/t/html-strip-pipeline-isnt-working/313288/2 "2022-08-30T20:47:18Z")

</div>

`POST /simple/_doc&pipeline=simple`

The syntax is

`POST <index>/_doc&pipeline=<pipeline>`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 27, 2022, 8:47pm UTC](https://discuss.elastic.co/t/html-strip-pipeline-isnt-working/313288/3 "2022-09-27T20:47:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
