123456789101112131415161718192021222324 |
- <?php
- class HTMLPurifier_AttrTransform_ScriptRequired extends HTMLPurifier_AttrTransform
- {
-
- public function transform($attr, $config, $context)
- {
- if (!isset($attr['type'])) {
- $attr['type'] = 'text/javascript';
- }
- return $attr;
- }
- }
|