Remove DebugKit markup from a view
<p>I have a *.ctp template with some HTML that's aimed to be converted into PDF with the <a href="https://github.com/FriendsOfCake/CakePdf/tree/1.0.3#configuration" rel="nofollow">CakePDF</a> plugin. In the development phase I have set CakePHP debug level to <code>2</code> and that causes all DebugKig stuff to show up in the rendered view:</p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="/debug_kit/css/debug_toolbar.css" /&gt;
&lt;script type="text/javascript"&gt;
//&lt;![CDATA[
window.DEBUGKIT_JQUERY_URL = "/debug_kit/js/jquery.js";
//]]&gt;
&lt;/script&gt;&lt;script type="text/javascript" src="/debug_kit/js/js_debug_toolbar.js"&gt;&lt;/script&gt;
</code></pre>

<pre class="lang-none prettyprint-override"><code>&lt;div id="debug-kit-toolbar"&gt;[...]&lt;/div&gt;
</code></pre>

<p>I don't need it and most PDF engines go berserk with it. Is there a way to get rid of it, either in this specific view or in all PDF templates?</p>