string quotemeta
文字列strについて、
. \\ + * ? [ ^ ] ( $ )
addslashes(), htmlentities(), htmlspecialchars(), nl2br(), stripslashes() も参照下さい。