• martin4nbi

    (@martin4nbi)


    Beware! We discovered that this this plugin (v.1.7) when activated can cause javascript code to be altered and broken when it’s sent to the browser. We’re using it in WordPress v.4.9.9.

    This plugin caused a browser javascript syntax error, which caused some of the page functionality to break. The WordPress page did not have the “Don’t Muck My Markup” switch turned on.

    The character string && was being turned into &038;&. The full line of the original javascript code was if(list != null && list.length != 0) {, and this was being turned into if(list != null &038;& list.length != 0) {, causing the javascript syntax error.

    With the plugin deactivated, the error does not occur. With the plugin activated, the error does occur, even though the “Don’t Muck My Markup” switch is turned off for the affected page.

    The javascript was being sent to the browser via a PHP include() statement in the affected page.

    So, this is just an FYI. It would be great if this issue could be fixed in future versions of this plugin.

  • The topic ‘Plugin can alter and break javascript code – turning “&&” into “&038;&”’ is closed to new replies.