\Ceo\HelpersHtml

Html processing static class Mostly just helpers

Summary

Methods
Properties
Constants
getDI()
extractText()
extractHtmlGrafs()
convertEmbeds()
stripEmbeds()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$di
N/A

Properties

$di

$di : 

Type

Methods

getDI()

getDI() 

extractText()

extractText(  $str) : array

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

Parameters

$str

Returns

array —

of text

extractHtmlGrafs()

extractHtmlGrafs(  $str,   $ignoreEmptyNodes = array()) : array

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

Parameters

$str
$ignoreEmptyNodes

Returns

array —

of text

convertEmbeds()

convertEmbeds(  $content) 

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

Parameters

$content

stripEmbeds()

stripEmbeds(  $content) 

Strip all embed data without converting it.

Parameters

$content