Building the epub version of the docs results in an invalid epub with errors on pages with console directives
While working on #37138, I tested the epub build and it generates an epub file where the pages including console directives show unexpected content.
For example, in an online epub reader (https://epub-reader.online/):
XML Parsing Error: not well-formed Location: https://epub-reader.online/# Line Number 31, Column 82:<input class="c-tab-unix" id="c-tab-0-unix" type="radio" name="console-0" checked> ---------------------------------------------------------------------------------^
Locally with calibre the two OS radio buttons are shown as shown in this attached image:

Change History
(6)
| Description: |
modified (diff)
|
| Description: |
modified (diff)
|
| Triage Stage: |
Unreviewed → Accepted
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
In c087b7e8: