Project

General

Profile

Task #2581

Updated by Ayush Khandelwal over 2 years ago

data-source will contain o-url of the internal link from new document 

 *Scheme:* 
 <pre> 
 updateAllInternalLinksWithDataSource(oldDocContent, newDocContent): 
	 - newHrefLinks = getAllLinks(newDocContent); 
	 - oldHrefLinks = getAllLinks(oldDocContent); 
	 - for(i=0; i < oldHrefLinks.size(); i++): 		
		 - oldHrefLink = oldHrefLinks[i]; 
		 - oldHrefLink.setAttribute('data-source', newHrefLinks[i]); 
 </pre>

Back