Title: Bug: Javascript Execution Error
Last modified: September 18, 2026

---

# Bug: Javascript Execution Error

 *  Resolved [mngallery](https://wordpress.org/support/users/mngallery/)
 * (@mngallery)
 * [2 weeks, 2 days ago](https://wordpress.org/support/topic/bug-javascript-execution-error/)
 * There is a javascript execution error related to _$selector\_js _and _$title\
   _js_ in _hpt\_hptheadinsert()_
 * For example: “echo esc_js( $title_js )” emits quotes as “&quot;Page Title&quot;”
   which results in invalid javascript when assigning a value to _var titleText_
 * Emitting _$title\_js_ without a call to _esc\_js()_ results in valid javascript.
 * Tested only with Firefox.

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

 *  Plugin Author [Arjun Thakur](https://wordpress.org/support/users/arjunthakur/)
 * (@arjunthakur)
 * [2 weeks, 2 days ago](https://wordpress.org/support/topic/bug-javascript-execution-error/#post-19023809)
 * Hi [@mngallery](https://wordpress.org/support/users/mngallery/) thank you for
   the details. Will check this scenario.
 * Can you confirm if you are facing this issue in the latest v1.6.2 ?
 *  [pmerkland](https://wordpress.org/support/users/pmerkland/)
 * (@pmerkland)
 * [1 week, 6 days ago](https://wordpress.org/support/topic/bug-javascript-execution-error/#post-19025986)
 *     ```wp-block-code
               <!-- Hide Page Title -->
               <script type="text/javascript">
               (function () {
                   'use strict';
   
                   function hptHideTitle() {
                       var selector = &quot;.entry-title&quot;;
                       var titleText = &quot;AI fu00f6r ekonomer&quot;;
                       var target = null;
   
                       if (selector) {
                           try {
                               target = document.querySelector(selector);
                           } catch (e) {
                               target = null;
                           }
                       }
       ```
   
 * Version 1.6.2
    -  This reply was modified 1 week, 6 days ago by [pmerkland](https://wordpress.org/support/users/pmerkland/).
 *  Plugin Author [Arjun Thakur](https://wordpress.org/support/users/arjunthakur/)
 * (@arjunthakur)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/bug-javascript-execution-error/#post-19029607)
 * [@mngallery](https://wordpress.org/support/users/mngallery/) [@pmerkland](https://wordpress.org/support/users/pmerkland/)
   We have fixed the JavaScript compatibility issue affecting some browsers, including
   Firefox.
   The fix is included in **version 1.6.3**. Please update to the latest
   version and check again.If you still experience the issue after updating to 1.6.3,
   please let us know your browser version so we can investigate further.
 *  [pmerkland](https://wordpress.org/support/users/pmerkland/)
 * (@pmerkland)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/bug-javascript-execution-error/#post-19029890)
 * I can confirm **version 1.6.3** have fixed the issue for us. Thanks!
 *  Plugin Author [Arjun Thakur](https://wordpress.org/support/users/arjunthakur/)
 * (@arjunthakur)
 * [6 days, 3 hours ago](https://wordpress.org/support/topic/bug-javascript-execution-error/#post-19031904)
 * Thanks for confirmation.
 *  [@pmerkland](https://wordpress.org/support/users/pmerkland/) if you can write
   a review for us that would be really helpful for us. [https://wordpress.org/support/plugin/hide-page-and-post-title/reviews/#new-post](https://wordpress.org/support/plugin/hide-page-and-post-title/reviews/#new-post)
    -  This reply was modified 6 days, 3 hours ago by [Arjun Thakur](https://wordpress.org/support/users/arjunthakur/).

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-javascript-execution-error%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/hide-page-and-post-title/assets/icon-128x128.png?rev=3691889)
 * [Hide Page And Post Title](https://wordpress.org/plugins/hide-page-and-post-title/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hide-page-and-post-title/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hide-page-and-post-title/)
 * [Active Topics](https://wordpress.org/support/plugin/hide-page-and-post-title/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hide-page-and-post-title/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hide-page-and-post-title/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Arjun Thakur](https://wordpress.org/support/users/arjunthakur/)
 * Last activity: [6 days, 3 hours ago](https://wordpress.org/support/topic/bug-javascript-execution-error/#post-19031904)
 * Status: resolved