For example script-src 'self' blocks inline scripts. It limits the damage of an XSS bug but does not replace escaping.