Problem/Motivation
When using the latest release of bootstrap in combination with latest d8 core, markup in form element labels won't get rendered but escaped due to usage of Xss::filterAdmin() in bootstrap_preprocess_form_element_label().
This might also be the case in other locations of the bootstrap theme code, but i didn't investigate further for now.
You can however reproduce the issue by changing any checkbox label to contain a link and view that form in a bootstrap based theme.
Proposed resolution
Remove usage of Xss::filterAdmin() as core already handles this correctly. Also check for other locations that use escaping, test and remove escaping if possible.
Comments
Comment #2
s_leu commentedHere a patch that fixes the behavior with markup in form element titles. This is just a start, other locations of the bootstrap code need to be checked and probably fixed as well.
Comment #3
neardark commentedMerged.