示例#1
0
 /**
  * @param string $htmlString
  *
  * @return string
  */
 protected function convertImagesToBase64($htmlString)
 {
     if (!$htmlString) {
         return $htmlString;
     }
     return $this->base64Converter->convertImageSrcTo64Base($htmlString);
 }
示例#2
0
 /**
  * @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;
 }