PHP code example of mikemix / zf2-tidy-filter
1. Go to this page and download the library: Download mikemix/zf2-tidy-filter 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/ */
mikemix / zf2-tidy-filter example snippets
namespace Application\Form;
use Zend\Form\Form;
use Zend\InputFilter\InputFilterProviderInterface;
use zf2filter\Filter\TidyFilter;
class ExampleForm extends Form implements InputFilterProviderInterface
{
function init()
{
$this->add([
'name' => 'html',
'type' => 'textarea',
]);
}
public function getInputFilterSpecification()
{
return [
'html' => [
'