/** * @param string $htmlString * * @return string */ protected function convertImagesToBase64($htmlString) { if (!$htmlString) { return $htmlString; } return $this->base64Converter->convertImageSrcTo64Base($htmlString); }
/** * @param array $options * @param string $contentIndex * * @return array */ protected function convertImagesToBase64(array $options, $contentIndex) { if (array_key_exists($contentIndex, $options)) { $options[$contentIndex] = $this->base64Converter->convertImageSrcTo64Base($options[$contentIndex]); } return $options; }