Documentation

Html
in package

Html processing static class Mostly just helpers

Table of Contents

$di  : mixed
convertEmbeds()  : mixed
Convert embedded media from CEO-Core into templated embed data.
extractHtmlGrafs()  : array<string|int, mixed>
Extract direct decedent paragraph nodes from HTML block. Each graf will be returned as a node in an array, with html,
extractText()  : array<string|int, mixed>
Extract paragraph nodes from HTML block. Each graf will be returned as a node in an array, sans HTML.
getDI()  : mixed
stripEmbeds()  : mixed
Strip all embed data without converting it.

Properties

$di

private static mixed $di

Methods

convertEmbeds()

Convert embedded media from CEO-Core into templated embed data.

public static convertEmbeds(mixed $content) : mixed
Parameters
$content : mixed
Return values
mixed

extractHtmlGrafs()

Extract direct decedent paragraph nodes from HTML block. Each graf will be returned as a node in an array, with html,

public static extractHtmlGrafs(mixed $str[, mixed $ignoreEmptyNodes = [] ]) : array<string|int, mixed>
Parameters
$str : mixed
$ignoreEmptyNodes : mixed = []
Return values
array<string|int, mixed>

of text

extractText()

Extract paragraph nodes from HTML block. Each graf will be returned as a node in an array, sans HTML.

public static extractText(mixed $str) : array<string|int, mixed>
Parameters
$str : mixed
Return values
array<string|int, mixed>

of text

getDI()

public static getDI() : mixed
Return values
mixed

stripEmbeds()

Strip all embed data without converting it.

public static stripEmbeds(mixed $content) : mixed
Parameters
$content : mixed
Return values
mixed

Search results