A security analyst has identified that Cross-Site Scripting (XSS) vulnerabilities are present on a company's customer portal. What is the most effective control to mitigate these vulnerabilities?
Routine patching
Network segmentation
Output encoding
Disabling JavaScript on the client-side