diff --git a/formats/BarejsonFormat.php b/formats/BarejsonFormat.php new file mode 100644 index 00000000000..ccded499386 --- /dev/null +++ b/formats/BarejsonFormat.php @@ -0,0 +1,17 @@ +getItems()) != 1) { + throw new Exception('Unable to identify the target'); + } + $item = $this->getItems()[0]; + $content = $item->getContent() ?? ''; + $content = mb_convert_encoding($content, $this->getCharset(), 'UTF-8'); + return $content; + } +}