PHP code example of williamvenner / quill-to-plaintext

1. Go to this page and download the library: Download williamvenner/quill-to-plaintext 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/ */

    

williamvenner / quill-to-plaintext example snippets


use WilliamVenner\QuillToPlaintext;

QuillToPlaintext::Convert('{"ops":[{"insert":"Fixed problem with core files."}]}');
// => Fixed problem with core files.

$quill_delta = json_decode('{"ops":[{"insert":"Fixed problem with core files."}]}'); // this is emulating creating an actual Quill Delta object
QuillToPlaintext::Convert($quill_delta);
// => Fixed problem with core files.