Jump to content

Recommended Posts

Posted (edited)

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
Posted
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

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
×
×
  • Create New...