Title: Invalid character &#039;#&#039;
Last modified: August 30, 2016

---

# Invalid character '#'

 *  Resolved [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-character/)
 * Recently, I’ve started getting a syntax error with the plugin. Below is the javascript
   code generated. I am not sure how the following line can be correct:
 *  toAppend+=String.fromCharCode(t[i]+t[i-1]);
 * Thanks for any insight.
 * <span id=”21e53f959564a8ad3f01d1cda370e5dd”></span><script type=”text/javascript”
   >
    var t=[158,-98,195,-163,267,-153,254,-152,213,-179,288,-191,296,-188,304,-
   193,251,-213,248,-199,248,-196,255,-217,252,-203,251,-202,261,-223,258,-209,257,-
   206,265,-227,262,-213,261,-208,267,-229,264,-215,264,-211,270,-232,267,-218,267,-
   213,272,-234,269,-220,269,-217,276,-238,273,-216,271,-212,250,-215,264,-215,269,-
   210,248,-213,262,-214,267,-208,246,-211,260,-211,260,-201,239,-204,253,-204,252,-
   193,231,-196,250,-198,257,-219,254,-205,254,-197,256,-218,253,-204,252,-203,262,-
   224,259,-210,258,-210,269,-231,266,-217,266,-218,277,-239,274,-225,273,-224,283,-
   245,280,-231,280,-227,286,-248,283,-234,282,-234,293,-255,290,-233,288,-229,267,-
   232,281,-231,280,-221,259,-224,273,-224,272,-213,251,-216,265,-217,270,-211,249,-
   214,263,-215,266,-207,245,-210,259,-211,263,-204,242,-207,256,-207,261,-202,240,-
   205,254,-206,258,-199,237,-202,251,-202,251,-192,230,-195,244,-195,245,-186,224,-
   189,241,-187,246,-208,243,-186,243,-184,222,-187,236,-187,236,-177,215,-180,229,-
   181,238,-179,213,-151,265,-164,267,-162,277,-161,275,-178,294,-189,300,-190,254,-
   135,236,-136,246,-145,260,-160,257,-136,246,-141,244,-140,256,-152,263,-151,197,-
   98,209,-100,160,-113,210,-148]; var toAppend = ”; for (var i=1; i<t.length; i
   ++) { toAppend+=String.fromCharCode(t[i]+t[i-1]); } document.getElementById(’
   21e53f959564a8ad3f01d1cda370e5dd’).innerHTML = toAppend; </script><noscript>Please
   enable JavaScript to see this field.</noscript>
 * [https://wordpress.org/plugins/email-obfuscate-shortcode/](https://wordpress.org/plugins/email-obfuscate-shortcode/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-character/#post-6371244)
 * The above is not what I am getting. I am getting this:
 * `toAppend+=String.fromCharCode(t & # 091;i & # 093;+t & # 091;i-1 & # 093;);`
 * I added blank spaces above, otherwise the characters get interpreted when I enter
   them here. Looks like some other plugin is replacing the brackets by their html
   character code equivalent 🙁
 *  Plugin Author [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * (@khromov)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-character/#post-6371327)
 * Hey chamois_blanc,
 * That looks quite funky. Would you mind sharing the page that has this issue? 
   If you prefer you can send it via email: stanislav -at- khromov -dot- se
 * Thanks!
 *  Thread Starter [therealgilles](https://wordpress.org/support/users/chamois_blanc/)
 * (@chamois_blanc)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-character/#post-6371413)
 * Hi Khromov,
 * It looks like the culprit is the custom content shortcode plugin. Posted on that
   plugin support forum to alert the author.
 * Thanks for getting back to me.
 *  Plugin Author [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * (@khromov)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-character/#post-6371433)
 * No problem chamois_blanc, hope you can find a solution!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Invalid character '#'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/email-obfuscate-shortcode_98d5ca.
   svg)
 * [Email Obfuscate Shortcode](https://wordpress.org/plugins/email-obfuscate-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-obfuscate-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-obfuscate-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/email-obfuscate-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-obfuscate-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-obfuscate-shortcode/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/invalid-character/#post-6371433)
 * Status: resolved