Skip to content

Kirby 5.6.0

Dom::extractUrls()

Extracts all URLs wrapped in a url() wrapper or referenced by a CSS @import rule (both the url() and the plain string form). E.g. for style attributes and <style> elements.

Dom::extractUrls(string $value): array

Parameters

Name Type Default
$valuerequired string no default value

Return type

array

Parent class

Kirby\Toolkit\Dom