Is there a way to prevent Jenkins from stripping the style element from a build summary?
The answer is insanely simple: Disable the OWASP Markup Formatter plugin for the Badge Plugin section in the global config by checking the box as shown here:
This probably is not recommended for a multi-tenant instance with users that are not trusted. Our instance is a private instance where we have control over all jobs and content so makes sense for our use case.