Output option for Kirbytext (HTML vs. XHTML)

Is there a way to set Kirbytext to return valid XHTML instead HTML?

Thinking of closing slashes for self-closing elements but making sure attribute always have a value, e. g. allowfullscreen="true" instead of just allowfullscreen.

Don’t think there is an option, the Kirbytags are created using the tag method in the Html class.