PHP code example of levmyshkin / dom_purify

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

    

levmyshkin / dom_purify example snippets

js
import * as DOMPurify from 'dompurify';

let clean = DOMPurify.sanitize('<b>hello there</b>');
js
let clean = DOMPurify.sanitize(dirty, { USE_PROFILES: { html: true } });