Title: Uncaught SyntaxError: Unexpected token &#8216;:&#8217;
Last modified: January 17, 2024

---

# Uncaught SyntaxError: Unexpected token ‘:’

 *  [pratikwp](https://wordpress.org/support/users/pratikwp/)
 * (@pratikwp)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-37/)
 * Uncaught SyntaxError: Unexpected token ‘:’
 * The issue originated from the plugin file located at /wp-content/plugins/easy-
   testimonials/include/lib/gp-testimonial.class.php, specifically on line 73. The
   error was triggered by the use of wp_kses before the output, like this: echo 
   wp_kses($output, $tags);. Consequently, wp_kses was converting <script type=”
   application/ld+json”> to <script>.
 * To resolve this issue, I made a modification in wp_kses to allow the ‘script’
   tag. The fix involved adding the following line: $tags[‘script’] = array(‘type’
   => true);. This is fixed in the plugin file due to a bug in the plugin.
 * In order to implement the solution, I had to modify the plugin file.
   so please
   fix it and update the latest version

The topic ‘Uncaught SyntaxError: Unexpected token ‘:’’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-testimonials.svg)
 * [Easy Testimonials](https://wordpress.org/plugins/easy-testimonials/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-testimonials/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-testimonials/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-testimonials/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-testimonials/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-testimonials/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pratikwp](https://wordpress.org/support/users/pratikwp/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-syntaxerror-unexpected-token-37/)
 * Status: not resolved