Iteration through the html document

Add-in Express™ Support Service
That's what is more important than anything else

Iteration through the html document
I need to iterate through the html document and insert a div tag after each p tag 
Fady Sayegh




Posts: 7
Joined: 2012-09-12
Hi all,

I have created an ie add-in. when i click on a button from the toolbar, i need to iterate through the html document and each time i found a "P" tag, i need to insert a "DIV" tag which contains a link.

for example:

first paragraph

second paragaph

third paragraph


The result will be :

first paragraph

hyperlink 1

second paragraph

hyperlink 2

third paragraph

hyperlink 3




Thanks for your help

Regards

Fady Sayegh
Posted 14 Sep, 2012 13:26:02 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Fady,

Please take a look at the Advanced Search for Internet Explorer sample add-on. It demonstrates the required functionality. Also please take a look at the IE HowTo samples page on our web site.
.NET, Extended MAPI, Windows Phone & RT
Posted 17 Sep, 2012 05:33:46 Top