allowing data-* attributes with HTMLPurifier

后端 未结 3 1667
青春惊慌失措
青春惊慌失措 2021-02-07 21:33

Currently I am using this code with HTMLPurifier to allow data-* HTML tag attributes:

    $def = $config->getHTMLDefinition(true);
    $def->a         


        
3条回答
提交回复
热议问题