public function decode($fromjson)
    {
        $textfilter = $this->di->get("textfilter");
        $toparse = json_decode($fromjson);
        $comt = $textfilter->parse($toparse->text, ["yamlfrontmatter", "shortcode", "markdown", "titlefromheader"]);
        $comt = strip_tags($comt->text);
        return $comt;
    }
public function decode($fromjson)
    {
        $textfilter = $this->di->get("textfilter");
        $toparse = json_decode($fromjson);
        $comt = $textfilter->parse($toparse->text, ["yamlfrontmatter", "shortcode", "markdown", "titlefromheader"]);
        $comt = strip_tags($comt->text);
        return $comt;
    }
public function decode ( $ fromjson ) { $ textfilter = $ this -> di -> get ( "textfilter" ) ; $ toparse = json_decode ( $ fromjson ) ; $ comt = $ textfilter -> parse ( $ toparse -> text , [ "yamlfrontmatter" , "shortcode" , "markdown" , "titlefromheader" ] ) ; $ comt = strip_tags ( $ comt -> text ) ; return $ comt ; }
Converts json-string back to variables

@param string $fromjson the jsoncode
@return the extracted comment-text
Converts json - string back to variables