protected function removeNestedPlaceholders($originalContent)
    {
        return preg_replace_callback('/'.Constants::PLACEHOLDER_PATTERN.'/', function ($match) {
            return $this->pull($match[0]);
        }, $originalContent);
    }
protected function removeNestedPlaceholders($originalContent)
    {
        return preg_replace_callback('/'.Constants::PLACEHOLDER_PATTERN.'/', function ($match) {
            return $this->pull($match[0]);
        }, $originalContent);
    }
protected function removeNestedPlaceholders ( $ originalContent ) { return preg_replace_callback ( '/' . Constants :: PLACEHOLDER_PATTERN . '/' , function ( $ match ) { return $ this -> pull ( $ match [ 0 ] ) ; } , $ originalContent ) ; }
Remove nested placeholders so no nested placholders remain in the original contents.

@param string $originalContent

@return string
Remove nested placeholders so no nested placholders remain in the original contents .