Title: Javascript Error cause by single quote on commented code
Last modified: December 4, 2018

---

# Javascript Error cause by single quote on commented code

 *  Resolved [tncdesigns](https://wordpress.org/support/users/tncdesigns/)
 * (@tncdesigns)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-cause-by-single-quote-on-commented-code/)
 * Just found this issue with commented javascript with single quote not properly
   escape.
 * frontend/order_button.php line 63
 * Error:
    //wc_checkout_form.submit_error( ‘<div class=”woocommerce-error”>’ + 
   errorThrown + ‘</div>’ );
 * Solution:
    <?php /*wc_checkout_form.submit_error( ‘<div class=”woocommerce-error”
   >’ + errorThrown + ‘</div>’ );*/ ?>
 * Screenshot:
    [https://snag.gy/WAj19l.jpg](https://snag.gy/WAj19l.jpg) [https://snag.gy/jPf9Nc.jpg](https://snag.gy/jPf9Nc.jpg)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-cause-by-single-quote-on-commented-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Zip Co Limited](https://wordpress.org/support/users/zipmoney/)
 * (@zipmoney)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-cause-by-single-quote-on-commented-code/#post-10943929)
 * Hi [@tncdesigns](https://wordpress.org/support/users/tncdesigns/),
 * Thank you for your feedback and for pointing that out!
 * That line of code is actually not required for our plugin to work correctly, 
   and the next update of our plugin will actually have it removed.
 * We would love to hear from you if you have any other feedback on our plugin!
 * All the best,
    Zip

Viewing 1 replies (of 1 total)

The topic ‘Javascript Error cause by single quote on commented code’ is closed to
new replies.

 * ![](https://ps.w.org/zipmoney-payments-woocommerce/assets/icon-256x256.png?rev
   =2583821)
 * [zipMoney(Zip Co) Payments Plugin for WooCommerce](https://wordpress.org/plugins/zipmoney-payments-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zipmoney-payments-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Zip Co Limited](https://wordpress.org/support/users/zipmoney/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/javascript-error-cause-by-single-quote-on-commented-code/#post-10943929)
 * Status: resolved