source:
branches/beta/data/smarty_extends/modifier.script_escape.php
@
14465
Revision 14465, 316 bytes checked in by adati, 16 years ago (diff) |
---|
Line | |
---|---|
1 | <?php |
2 | /** |
3 | * Script¥¿¥°¤ò¥¨¥¹¥±¡¼¥× |
4 | * Á´¤Æ¤Î¥Ú¡¼¥¸¤ËŬÍѤµ¤ì¤ë |
5 | * |
6 | * @param string $value ÆþÎÏ |
7 | * @return string ½ÐÎÏ |
8 | */ |
9 | function smarty_modifier_script_escape($value) { |
10 | |
11 | if (empty($value)) { return; } |
12 | |
13 | return preg_replace("/<script.*?>|<\/script>/", '<script>', $value); |
14 | } |
15 | ?> |
Note: See TracBrowser
for help on using the repository browser.