Looking for Delphi libraries to sanitise user input

Until 6 months ago, all my web projects were in PHP, so I miss many of its functions. Now I am using TMS Webcore.

I need some user sanitization functions.

  • to stop sql injection
  • to stop saving html (strip out html)
  • to stop saving anything else that may interfere with the database or html display (Quote in a string comes to mind, although I have functions for it).

I could write my own, by whey re-invent the wheel?

  • Delphi does have HTMEscape and HTMlDecode but that’s not enough.
  • I am using parameterized queries.