Skip to content

SafeUrls ​

php
final readonly class KMark\Inline\SafeUrls

Tells whether a URL may be a link: a relative URL, or one whose scheme is allowed.

Source: src/Inline/SafeUrls.php

Methods ​

__construct() ​

php
public function __construct(array $allowedSchemes)

isSafe() ​

php
public function isSafe(string $url): bool

Documentation of 2.0.0 , built from f573e5f on 2.0.0 by pipeline #37507527063 on 2026-10-06.