source:
branches/dev/data/smarty_extends/modifier.script_escape.php
@
14491
| Revision 14491, 388 bytes checked in by naka, 19 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 | return preg_replace("/<script.*?>|<\/script>/", '########', $value); |
| 15 | } |
| 16 | ?> |
Note: See TracBrowser
for help on using the repository browser.
