WordPress, safely outputting SVGs without fighting PHPCS

Safely render SVGs in WordPress by creating a custom wp_kses based escaping function that passes PHPCS, keeps security intact preserves code.