Copied!
  • internal
CloneableFinalInstantiable
Methods
public static filterAttributes(array $attributes, array $allowList, bool $allowUnsafeLinks) : array
 
  • param array<string,mixed> $attributes
  • param list<string> $allowList
  • return array<string,mixed>
public static mergeAttributes( $attributes1, $attributes2) : array
 
  • param \Node|array<string,mixed> $attributes1
  • param \Node|array<string,mixed> $attributes2
  • return array<string,mixed>
public static parseAttributes(League\CommonMark\Parser\Cursor $cursor) : array
 
  • return array<string,mixed>
Constants
private League\CommonMark\Extension\Attributes\Util\AttributesHelper::ATTRIBUTE_LIST = '/^{:?(\s*([.]-?[_a-z][^\s.}]*|[#][^\s}]+|[a-z_:][a-z0-9:._-]*(?:\s*=\s*(?:[^"'=<>`\x00-\x20]+|'[^']*'|"[^"]*")))\s*)+}/i'
private League\CommonMark\Extension\Attributes\Util\AttributesHelper::SINGLE_ATTRIBUTE = '\s*([.]-?[_a-z][^\s.}]*|[#][^\s}]+|[a-z_:][a-z0-9:._-]*(?:\s*=\s*(?:[^"'=<>`\x00-\x20]+|'[^']*'|"[^"]*")))\s*'
Methods
public static filterAttributes(array $attributes, array $allowList, bool $allowUnsafeLinks) : array
 
  • param array<string,mixed> $attributes
  • param list<string> $allowList
  • return array<string,mixed>
public static mergeAttributes( $attributes1, $attributes2) : array
 
  • param \Node|array<string,mixed> $attributes1
  • param \Node|array<string,mixed> $attributes2
  • return array<string,mixed>
public static parseAttributes(League\CommonMark\Parser\Cursor $cursor) : array
 
  • return array<string,mixed>
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration