Title: [Plugin: WP-Syntax] JavaScript Operators Get Converted into HTML Entities &#8211; The Fix
Last modified: August 20, 2016

---

# [Plugin: WP-Syntax] JavaScript Operators Get Converted into HTML Entities – The Fix

 *  [coolbloke1324](https://wordpress.org/support/users/coolbloke1324/)
 * (@coolbloke1324)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-syntax-javascript-operators-get-converted-into-html-entities-the-fix/)
 * When outputting < and > as well as some other opertators, the wordpress editor
   alters the output to display the html entities version of the code instead of
   the actual code so you end up with things like a for loop that looks like this:
 * `for (var i = 0; i < 10; i++) { }`
 * Which will obviously break when you copy it to a script!
 * Please see my dev blog for how I fixed this:
 * [http://www.isogenicengine.com/2011/04/23/wp-syntax-plugin-javascript-operators/](http://www.isogenicengine.com/2011/04/23/wp-syntax-plugin-javascript-operators/)
 * [http://wordpress.org/extend/plugins/wp-syntax/](http://wordpress.org/extend/plugins/wp-syntax/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [coolbloke1324](https://wordpress.org/support/users/coolbloke1324/)
 * (@coolbloke1324)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-syntax-javascript-operators-get-converted-into-html-entities-the-fix/#post-2162254)
 * The above example altered my code lol. The for loop would have & lt ; instead
   of <.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-Syntax] JavaScript Operators Get Converted into HTML Entities–
The Fix’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-syntax_f8f6f6.svg)
 * [WP-Syntax](https://wordpress.org/plugins/wp-syntax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-syntax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-syntax/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-syntax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-syntax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-syntax/reviews/)

## Tags

 * [entities](https://wordpress.org/support/topic-tag/entities/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 1 participant
 * Last reply from: [coolbloke1324](https://wordpress.org/support/users/coolbloke1324/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-syntax-javascript-operators-get-converted-into-html-entities-the-fix/#post-2162254)
 * Status: not resolved