Good day guys :D

I am building a site using PHP but . . .

what would I do if my user was to use a CMS that allows for adding underlie, bold, font size, ect code. Like this forum does. How would I make sure no scripting is sent through?