EditorJS/BlockHandler.php
public function sanitizeBlock($blockType, $blockData)
    {
        $rule = $this->rules->tools[$blockType];

        return [
            'type' => $blockType,
            'data' => $this->sanitize($rule, $blockData)
        ];
    }
public function sanitizeBlock($blockType, $blockData)
    {
        $rule = $this->rules->tools[$blockType];

        return [
            'type' => $blockType,
            'data' => $this->sanitize($rule, $blockData)
        ];
    }
public function sanitizeBlock ( $ blockType , $ blockData ) { $ rule = $ this -> rules -> tools [ $ blockType ] ; return [ 'type' => $ blockType , 'data' => $ this -> sanitize ( $ rule , $ blockData ) ] ; }
Apply sanitizing rules according to the block type

@param string $blockType
@param array  $blockData

@throws EditorJSException

@return array|bool
Apply sanitizing rules according to the block type