PHP code example of wizbii / editor-js-to-html

1. Go to this page and download the library: Download wizbii/editor-js-to-html 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/ */

    

wizbii / editor-js-to-html example snippets


use Wizbii\EditorJsToHtml\EditorJsToHtml;

$editorJs = '{
    "time": 1724416790049,
    "blocks": [
        {
            "id": "I0aXLNrk3g",
            "type": "header",
            "data": {
                "text": "Question n°1",
                "level": 1
            }
        },
        {
            "id": "I0aXsL7VIq",
            "type": "paragraph",
            "data": {
                "text": "Veuillez indiquer votre date de naissance."
            }
        }
    ],
    "version": "2.29.1"
}';

echo EditorJsHelper::renderEditorJsToHtml($editorJs);