WordPress makes number of typographical replacements, related to dashes. You can read through the How WordPress Handles Dashes and Hyphens for full details, but in short your specific case is [space][hyphen][space]
getting replaced with [space][en-dash][space]
.
You will have to step through your code to make sense at which point it goes wrong and turns into visible unwanted entity rather than character.
Depending on how much of this you have the easy fix might be just to type actual en-dash character (Alt+0150 on numpad on Windows) instead of “minus” hyphen.
Related Posts:
- jQuery dialog popup
- How to change the text of a button in jQuery?
- jQueryUI dialog width
- How to use radio on change event?
- Form Submit jQuery does not work
- Slide right to left?
- Check if user is logged in using JQuery
- How to save the state of a drag and drop jQuery UI Sortables front end layout editor?
- jQuery UI Datepicker not working
- Custom function to rearrange attachments when creating posts – Almost there
- possible to make sections in theme customizer sortable and saveable at publish button clicked?
- Enqueuing jQuery in plug-ins
- How do I get my page to load the jQuery UI Effects library?
- Override default jquery ui library with newer version
- How to enable the content editor as a droppable target with jQuery-ui?
- Automatic jQuery accordion from header tags
- Jquery not showing in homepage
- jQuery.accordion isn’t a function even when enqueued
- Override theme style with other CSS on a specific page
- Will the latest Bootstrap work properly with the default WordPress jQuery?
- Rhyzz Repeatable-fields javascript in php and wordpress
- WordPress + BlockUI or a splash page [closed]
- Return an array from get_terms and store as JavaScript array for search autocomplete
- Dukapress jQuery(“form.product_update”).livequery is not a function [closed]
- Which jQuery packages are included in WordPress 3.1.2?
- Good Solution for Adding jQuery Tabs Anywhere Within WordPress?
- Cannot enqueue jQuery correctly using Google CDN
- Adding jQuery UI elements to WordPress page
- Sorting WP Auctions by date/price?
- How to add custon UI jquery & Fancybox script to WP
- jQuery tabs plugin with callback to fetch data
- Jquery UI Google CSS, from where?
- datepicker for custom post type admin
- JQuery UI not loading without explicit loading of jQuery
- Is there a default way in wordpress to create a overlay in the dashboard?
- AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0
- Recommended Use of Bootstrap, or JQuery-UI in WP/plugin development?
- Screen Options JavaScript Code
- Drag and Drop Metadata Menu Order
- A carousel slideshow plugin in JavaScript
- jQuery UI Accordion loading very slow
- Theme style overrides the plugin style
- Slide toggle Jquery UI
- jquery Autocomplete
- why does so many javascript libraries are loaded along with my website?
- Dashboard controls have all stopped working
- How can I add a new lib path without call each one on the header?
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- jQuery dialog prints HTML-Tags under WordPress
- using jquery autocomplete in wordpress plugin
- Theme variation conflict with jquery select2 dropdown
- jQuery datepicker not showing on admin menu
- Jquery change background color
- jQuery Toggle Text?
- jQuery – replace all instances of a character in a string [duplicate]
- jQuery how to find an element based on a data-attribute value?
- Display XML content in HTML page
- jQuery: outer html()
- jquery – is not a function error
- jQuery Form Validation before Ajax submit
- How to use date picker in Angular 2?
- Resource interpreted as Document but transferred with MIME type application/json warning in Chrome Developer Tools
- Animate element transform rotate
- Is jQuery included in WordPress by default?
- Creating Multiple wp_localize_script for Shortcode?
- jQuery does not work in widget backend
- How wp_enqueue_script works?
- Can’t move jQuery to footer
- wp_ajax unauthenticated and authenticated
- Firebug : Problem with jQuery in WordPress admin panel
- JSON output returns page source code [closed]
- Display data on same page as form without refresh
- Trying to remove duplicate jquery scripts
- How to make an WordPress element sticky? [closed]
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- How do I remove WordPress Custom Menus hover event and replace it with jQuery onclick?
- Do I need to use jQuery for my template?
- Moving jQuery to footer from header
- jQuery plugin not loading
- My wordpress site is using local ip to point to jquery and other files, how to fix it?
- Search query with Ajax
- Load an action which is in an url with Jquery
- After inserting jquery weather code, my responsive menu is lost
- Tabbed content for WordPress sidebar
- main navigation menu disappear after adding jquery source file
- wp_deregister_script(‘jquery’) not working
- Add JQuery As Code Snippet
- How Do I change Markup of a link in WordPress
- How can publish my bootstrap created table ( huge amount of data) on my word-press theme?
- JQuery toggle in Visual Composer
- jQuery does not appear to be enqueued on static homepage
- JQuery multiple toggle values
- How to pass more information though separate post keys via AJAX
- How to add gif as preloader in wordpress?
- Drop Down Category Menu Not Working
- controlling the showing and hiding of the website logo
- Load loop images on click / defer image loading until click or other event
- Not able to remove a class from an element using JQuery [closed]
- Individual Pages are loading halfway down
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]