You are here

public function LinkExtractorInterface::extract 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::extract()

Highlight hrefs from links in the given HTML string.

Parameters

string $string: The HTML string to extract links from.

Return value

string The HTML string, with links highlighted.

1 method overrides LinkExtractorInterface::extract()
InlineLinkExtractor::extract in src/LinkExtractor/InlineLinkExtractor.php
Highlight hrefs from links in the given HTML string.

File

src/LinkExtractor/LinkExtractorInterface.php, line 19

Class

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

Namespace

Drupal\printable\LinkExtractor

Code

public function extract($string);