PHP cant disable clientside scripting support, of course.
What it can do, however, is format user submitted data such that clientside scripting is rendered harmless.
These ways include the use of [man]htmlspecialchars/man, [man]htmlentities/man and [man]strip_tags/man.