4 * Implements required attribute stipulation for <script>
6 class HTMLPurifier_AttrTransform_ScriptRequired
extends HTMLPurifier_AttrTransform
10 * @param HTMLPurifier_Config $config
11 * @param HTMLPurifier_Context $context
14 public function transform($attr, $config, $context)
16 if (!isset($attr['type'])) {
17 $attr['type'] = 'text/javascript';