Sunnysideup\FixVideosForSS4\Api\ReplaceVimeoAndYouTubeEmbedCode
Synopsis
class ReplaceVimeoAndYouTubeEmbedCode
{
- // members
- protected string $prefixHTML = '<html><head><meta http-equiv="Content-type" content="text/html; charset=UTF-8"></head><body>';
- protected string $postfixHTML = '</body></html>';
- // methods
- public string|null oldToNewHTML()
- protected void newYouTubeCode()
- protected void newVimeoCode()
- protected void cleanHTML()
- protected void getYouTubeCodeFromURL()
- protected string getVimeoCodeFromURL()
Members
protected
- $postfixHTML
- $prefixHTML
Methods
protected
- cleanHTML()
- getVimeoCodeFromURL() — source: https://gist.github.com/anjan011/1fcecdc236594e6d700f Get Vimeo video id from url
- getYouTubeCodeFromURL()
- newVimeoCode()
- newYouTubeCode()
public
- oldToNewHTML() — returns null if there is no change!