Jump to content

Remove anchor tags of a class


ur
 Share

Recommended Posts

Is there any UDF to remove all anchor tags <a> with a particular class (and also its sub elements completely) in a html document.

Here the classes are browse and breadcrumbs

Like in the below image.

image.png.8ab7b638f0ac0eb7ccee0032e1a3b4bc.png

image.png.ab228ba25b2e7506bd941acafdcd4325.png

 

I am not able to find that option in IE.au3

 

Please suggest.

Edited by ur
Link to comment
Share on other sites

1 minute ago, FrancescoDiMuro said:

@ur
I think you could read the HTML document with _IEDocReadHTML, and then, with a StringRegExpReplace(), replace all the <a> tags with a blank row, or something else.

Thank you @FrancescoDiMuro

But I need to remove anchor tags of a specific class.

Like

<a class="browse" ..  >

 

And also its sub elements.Like any image tag in it.

 

Could you please suggest how to do that

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...