0

Right now I'm using a form to store html input, and then storing them in the database using PDO and mysql. The website then uses these inserted values to display parts of the site. Is that safe? Is there a better solution? What are the possible security implications?

Masu
  • 1,568
  • 4
  • 20
  • 41

1 Answers1

1

Is that safe? Yes, so long as you're using something like HTML Purifier when you actually display it to the user.

Is it the best solution? Perhaps not. But hardly the worst.

Scott Arciszewski
  • 33,610
  • 16
  • 89
  • 206