Akitoです。
>SQLインジェクション等の危険性が出てきますので、
>何か他に解決方法はありませんでしょうか?
magic_quotes_gpc = ON にしたまま、Smarty側の表示だけ変えたいなら、
//modifier.stripslashes.php
function smarty_modifier_stripslashes($string)
{
return stripslashes($string);
}
という、プラグインを作って、
{$value|stripslashes|escape}
とかってやるのはどうですかね?
-----
Akito <akito-sophia @ five-foxes.com>
http://php.five-foxes.com/