One case where you probably can't is for image uploads. You might think it would be nice to allow a user to upload a svg for their avatar or something.
That's certainly something to be considered with user uploaded svg images. However it's reasonably straightforward to parse an svg and remove any script elements.
But SVG can embed javascript which can lead to XSS: https://hackerone.com/reports/148853