Title: &gt; converted into &#8220;&amp;gt ;&#8221;
Last modified: February 21, 2024

---

# > converted into “&gt ;”

 *  Resolved [wolxor](https://wordpress.org/support/users/wolxor/)
 * (@wolxor)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/converted-into/)
 * I have configured the plugin and it is working correctly. I have configured the
   plugin to pre-book a theatre performance, which means that there are multiple
   seats available at any given time, in my case 190 seats.
 * I want to reduce the maximum number of seats a user can book, so I tried to add
   the script I found in the help section on the “Edit Scripts” tab:
 *     ```wp-block-code
       var cpahb_max_quantity = 8;
   
       jQuery(document).one("showHideDepEvent", function () {
         (function ($) {
           function removecapacity() {
             $(".ahbfield_quantity option").each(function () {
               if ($(this).val() > cpahb_max_quantity) {
                 $(this).remove();
               }
             });
           }
           $(".ahbfield_service").bind("change", function () {
             removecapacity();
           });
           removecapacity();
         })(jQuery);
       });
       ```
   
 * But every time I save it, it converts > to &gt ; [without the space between t
   and ;] and the script does not work.
 * I have tried disabling all my plugins one by one, but I still get the same error.
 * How can fix this problem?
    -  This topic was modified 2 years, 3 months ago by [wolxor](https://wordpress.org/support/users/wolxor/).
    -  This topic was modified 2 years, 3 months ago by [wolxor](https://wordpress.org/support/users/wolxor/).
    -  This topic was modified 2 years, 3 months ago by [wolxor](https://wordpress.org/support/users/wolxor/).

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

 *  Thread Starter [wolxor](https://wordpress.org/support/users/wolxor/)
 * (@wolxor)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/converted-into/#post-17448795)
 * I solved this problem by modifying the code in this way:
 *     ```wp-block-code
       var cpahb_max_quantity = 9; # set the max+1
   
       jQuery(document).one("showHideDepEvent", function () {
         (function ($) {
           function removecapacity() {
             $(".ahbfield_quantity option").each(function () {
               if (Math.max($(this).val(), cpahb_max_quantity) == $(this).val()) {
           		$(this).remove();
       		}
             });
           }
           $(".ahbfield_service").bind("change", function () {
             removecapacity();
           });
           removecapacity();
         })(jQuery);
       });
       ```
   
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/converted-into/#post-17460633)
 * Hi,
 * Sorry for the late. Thank you for the feedback about the solution.
 * Thank you for using the plugin!

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

The topic ‘> converted into “&gt ;”’ is closed to new replies.

 * ![](https://ps.w.org/appointment-hour-booking/assets/icon-256x256.png?rev=1784135)
 * [Appointment Hour Booking - Booking Calendar](https://wordpress.org/plugins/appointment-hour-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-hour-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-hour-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-hour-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-hour-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-hour-booking/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/converted-into/#post-17460633)
 * Status: resolved