Don't show links with data-mautrix-exclude-plaintext attribute
This commit is contained in:
		@@ -193,7 +193,7 @@ func (parser *htmlParser) linkToEntity(node *html.Node) Entity {
 | 
			
		||||
		Children: parser.nodeToEntities(node.FirstChild),
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(href) == 0 {
 | 
			
		||||
	if len(href) == 0 || parser.hasAttribute(node, "data-mautrix-exclude-plaintext") {
 | 
			
		||||
		return entity
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user