# StripTags or TextStart offset

**URL:** https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720
**Category:** Automation
**Created:** [August 31, 2019, 12:13pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720 "2019-08-31T12:13:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![padillac](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/padillac/32/4496_2.png) [@padillac](https://discourse.devontechnologies.com/u/padillac)
#### Post date: [August 31, 2019, 12:13pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/1 "2019-08-31T12:13:31Z")

</div>

I’m trying to use `TextStart` and `TextEnd` to focus on the actual text content of a page. I have an entry that looks like:

```
"TextStart" : "<div class=\"usertext-body may-blank-within md-container \" ><div class=\"md\"><p>",

```

The problem is, the matching HTML actually appears _before_ the result that I want. So I need to skip past the first instance of it. And I don’t see a way to choose a different string, because the server produces some dynamically generated content that I can’t match against.

So my next thought was to use `StripTags` to strip out the content that I don’t want. It’s in a simple side bar that is like `<div class="side">... all the content ...</div>` and so I tried:

```
"StripTags" : [
  "<div class=\"side\">", "</div>"
]

```

Unfortunately, DevonAgent crashes when trying to process the results. I don’t know if I’m using `StripTags` correctly or not – the help says “[array] Array of strings marking HTML tags defining blocks to strip.” but doesn’t provide any examples.

How can I exclude a part of the web page, and match against the second instance of my `TextStart`?

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [September 1, 2019, 4:51pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/2 "2019-09-01T16:51:15Z")

</div>

What OS are you running?

---

<div class="post-metadata">

### Author: ![padillac](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/padillac/32/4496_2.png) [@padillac](https://discourse.devontechnologies.com/u/padillac)
#### Post date: [September 1, 2019, 8:05pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/3 "2019-09-01T20:05:37Z")

</div>

10.13.6

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [September 1, 2019, 8:35pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/4 "2019-09-01T20:35:11Z")

</div>

In DEVONagent, hold the **Option key** and select **Help \> Report Bug** to report the crash. Thanks!

---

<div class="post-metadata">

### Author: ![padillac](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/padillac/32/4496_2.png) [@padillac](https://discourse.devontechnologies.com/u/padillac)
#### Post date: [September 1, 2019, 8:51pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/5 "2019-09-01T20:51:03Z")

</div>

I can do that.

Is there any information on how to use `StripTags` ? I don’t see any examples documented. Or how to get the second `TextStart` / `TextEnd` result?

I’m here to ask for help on how to accomplish a result with DevonAgent. The crash is incidental.

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [September 2, 2019, 12:56pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/6 "2019-09-02T12:56:14Z")

</div>

@cgrunenberg would have to comment as I have no examples on it.

> The crash is incidental.

A crash isn’t incidental to us, especially if it’s cause by the parameters you mentioned.

---

<div class="post-metadata">

### Author: ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)
#### Post date: [September 2, 2019, 3:22pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/7 "2019-09-02T15:22:10Z")

</div>

The BBC News, Google News, World News Network and JSTOR plugins use this.

---

<div class="post-metadata">

### Author: ![padillac](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/padillac/32/4496_2.png) [@padillac](https://discourse.devontechnologies.com/u/padillac)
#### Post date: [September 2, 2019, 8:32pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/8 "2019-09-02T20:32:26Z")

</div>

Oh, cool! I just saw that I could not edit the plugins, so I figured they were compiled in somehow. I never noticed that “show in finder” was available until now. Still learning things after using it for years 🙂 Thanks

---

<div class="post-metadata">

### Author: ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)
#### Post date: [September 2, 2019, 9:05pm UTC](https://discourse.devontechnologies.com/t/striptags-or-textstart-offset/49720/9 "2019-09-02T21:05:15Z")

</div>

> so I figured they were compiled in somehow

Many you can duplicate and edit.
