I want to replace <
and >
in a php string before inserting into the database so when a user types a code, it won't execute its function so I did this:
$comment = str_replace("<", "<", $comment);
$comment = str_replace(">", ">", $comment);
But I also have something like this within the string <3msg
which I don't want to replace Please How do I run my code.