You are here

public function LinkExtractorInterface::removeAttribute in Printer and PDF versions for Drupal 8+ 8

Same name and namespace in other branches
  1. 2.x src/LinkExtractor/LinkExtractorInterface.php \Drupal\printable\LinkExtractor\LinkExtractorInterface::removeAttribute()

Remove href from links in the given HTML string.

Parameters

string $content: The HTML string to remove links from.

string $attr: The attribute which has to be removed from the link.

Return value

string The HTML string, with links removed.

1 method overrides LinkExtractorInterface::removeAttribute()
InlineLinkExtractor::removeAttribute in src/LinkExtractor/InlineLinkExtractor.php
Remove href from links in the given HTML string.

File

src/LinkExtractor/LinkExtractorInterface.php, line 32

Class

LinkExtractorInterface
Defines an interface for extracting links from a string of HTMl.

Namespace

Drupal\printable\LinkExtractor

Code

public function removeAttribute($content, $attr);