tools.php
Table of Contents
- str_starts_with() : mixed
- htmlCleanAndTidy() : mixed
- sd() : mixed
- isHTML() : mixed
- sanitizeFileName() : mixed
- wrap_implode() : mixed
- preg_match_all_callback() : mixed
- from https://www.geekality.net/2017/02/08/php-preg_match_all_callback/
- preserveScriptContent() : DOMQuery
- Process the script tags in a QueryPath object to prevent encoding of their content.
Functions
str_starts_with()
str_starts_with(mixed $haystack, mixed $needle) : mixed
Parameters
- $haystack : mixed
- $needle : mixed
Return values
mixed —htmlCleanAndTidy()
htmlCleanAndTidy(mixed $html) : mixed
Parameters
- $html : mixed
Return values
mixed —sd()
sd(mixed $v[, mixed $name = '' ]) : mixed
Parameters
- $v : mixed
- $name : mixed = ''
Return values
mixed —isHTML()
isHTML(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —sanitizeFileName()
sanitizeFileName(mixed $string) : mixed
Parameters
- $string : mixed
Return values
mixed —wrap_implode()
wrap_implode(mixed $array[, mixed $before = '' ][, mixed $after = '' ][, mixed $separator = '' ]) : mixed
Parameters
- $array : mixed
- $before : mixed = ''
- $after : mixed = ''
- $separator : mixed = ''
Return values
mixed —preg_match_all_callback()
from https://www.geekality.net/2017/02/08/php-preg_match_all_callback/
preg_match_all_callback(string $pattern, string $subject, callable $callback) : mixed
Parameters
- $pattern : string
- $subject : string
- $callback : callable
Return values
mixed —preserveScriptContent()
Process the script tags in a QueryPath object to prevent encoding of their content.
preserveScriptContent(DOMQuery $qp) : DOMQuery
Parameters
- $qp : DOMQuery
-
The QueryPath object to process.
Return values
DOMQuery —The modified QueryPath object with unencoded script tags.