In the ‘Button/icon’ section, in version 2.3.11, the text could contain an element such as <span class"=myclass">my button text, which is permitted in a button from an HTML semantics perspective as span is not an interactive content.
I can see the behavior change you are referring to, but I cannot confirm from the current context whether this was an intentional sanitization change or an unintended regression.