PHP code example of boring-dragon / editorjs-simple-html-parser
1. Go to this page and download the library: Download boring-dragon/editorjs-simple-html-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
boring-dragon / editorjs-simple-html-parser example snippets
use Durlecode\EJSParser\Parser;
$html = Parser::parse($data)->toHtml();
use Durlecode\EJSParser\Parser;
$parser = new Parser($data);
$parser->setPrefix("cat");
$parsed = $parser->toHtml();