When adopting custom text that will be displayed later, you need to consider two fronts.
First, you need to protect your database from injection attacks. There is a simple PHP function for this: mysql_real_escape_string () is usually sufficient to protect your database from injection when passing this string to the repository as a value field.
, , HTML-, , . , htmlspecialchars() . ( , , .) , Markdown, , HTML , .
, , GET/POST, . , , .