TextformatterVideoEmbed::format()
Text formatting function as used by the Textformatter interface
Here we look for video codes on first pass using a fast strpos() function. When found, we do our second pass with preg_match_all and replace the video URLs with the proper embed codes obtained from each service's oembed web service.
Usage
$textformatterVideoEmbed->format($str);Arguments
| Name | Type(s) | Description |
|---|---|---|
$str |
TextformatterVideoEmbed methods and properties
API reference based on ProcessWire core version 3.0.260