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