Does anyone know of a way to stop EE from injecting spans (with inline styles) into code blocks in comments? I'm fine with the div
wrapping the code
(that's not that big of a deal), but the spans are completely unnecessary.
Example output from EE:
<div class="codeblock">
<code>
<span style="color: #000000">
<span style="color: #0000BB">This is code</span>
</span>
</code>
</div>
Edit to update: I've worked around this problem by using the following CSS to override the inline styles, so really this is just a matter of "I don't want junk in my markup" over broken functionality. (Also, a matter of pride, because !important
is !embarassing.)
.codeblock code, .codeblock span {
color: #ddd !important;
}
[code]This is code[/code]
. Thanks for asking, though, as I was coming back here to add this bit of detail. :){comment}
(the EE no_follow plugin), and it still happened. Project isn't production-ready, so no shareable URL unfortunately. I'm confident this is a legit bug, so I'm going to file a ticket. I'll follow up here with anything that happens from it.