MOBILE-3086 data: Handle all links in templates
This commit is contained in:
		
							parent
							
								
									279bdcb89a
								
							
						
					
					
						commit
						6b3214b87c
					
				@ -602,7 +602,7 @@ export class AddonModDataHelperProvider {
 | 
			
		||||
        template = this.domUtils.fixHtml(template);
 | 
			
		||||
 | 
			
		||||
        // Add core-link directive to links.
 | 
			
		||||
        template = template.replace(/<a ([^>]*href="[^>]*)>/i, (match, attributes) => {
 | 
			
		||||
        template = template.replace(/<a ([^>]*href="[^>]*)>/ig, (match, attributes) => {
 | 
			
		||||
            return '<a core-link capture="true" ' + attributes + '>';
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user