I regularly have to upload HTML to a CMS that strips out <link>, <style> and in fact <head> tags (Canvas LMS).  I'm experimenting with writing a derived backend that inlines CSS (in this case using Juice https://github.com/Automattic/juice, but I'm agnostic about what external tool to use). I've just got it sort of limping along and it has finally occurred to me to ask whether someone else has already solved this problem! If so, I would love to steal your code! Thanks,

Matt