How can I prevent a custom block from rewriting HTML? I have a self-contained widget written by a third party that consists of HTML, JS, and CSS. I've dumped it into a custom block with Full HTML (and verified the Full HTML settings are loose enough that they shouldn't conflict with the markup). Also, I'm using CKEditor. When I save the custom block, it turns &lt;div class=&quot;bookwidget&quot;&gt; into &lt;div class=&quot;bookwidget&quot;&gt;&amp;nbsp;&lt;/div&gt; so that the widget doesn't even get an opportunity to render.
Is there a workaround for this? Is my only alternative to create a custom module?
Try going to Admin menu &gt; Configuration &gt; Content authoring &gt; Text formats and editors then edit yours (E.g. &quot;basic html&quot;)
Down towards the bottom you should see an option: Correct faulty and chopped off HTML - uncheck that option and save.
Not sure why a widget would expect an un-closed &lt;div /&gt; tag though.