I have the plugin "Don't Muck My Markup" set to prevent WP from running `wpautop` site-wide, but for some reason all rendered HTML is getting `<br/>` added at the end of every line. Even inside of `<script>` tags, which naturally busts the javascript 
The code outside the snippet, ie. in the rest of the post/page, is properly not being "Mucked".
Here's an example of the snippet code:
And here's what's getting rendered in the DOM:
While the above is a small example and easily gotten around by one-lining the JS, I've got another snippet that loads an include file and the same thing is happening to each line from the include.. which also has <script> tags getting messed up like this to say nothing of throwing off my layout with all these extra <br/>s 
Help me Obiwan Webcraftic, you're my only hope.
The code outside the snippet, ie. in the rest of the post/page, is properly not being "Mucked".
Here's an example of the snippet code:
PHP:
$current_user = wp_get_current_user();
/**
* @example Safe usage:
* $current_user = wp_get_current_user();
* if ( ! $current_user->exists() ) {
* return;
* }
*/
$userid = $current_user->ID;
// set the WPuser cookie
if((!isset($_COOKIE['WPuser']) && $userid > 0) || (isset($_COOKIE['WPuser']) && $_COOKIE['WPuser'] != $userid) ) {
setcookie('WPuser', $userid, time() + (86400 * 30), "/"); // 86400 = 1 day
}
echo "<script>
// setting the WPuser to a global var if needed
var WPuser = $userid;
</script>";
HTML:
<script><br />
// setting the WPuser to a global var if needed<br />
var WPuser = 1;<br />
</script>
Help me Obiwan Webcraftic, you're my only hope.
Last edited: