Questions tagged [htmlspecialchars-decode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
21 views

wordpress shortcode url decode non Latin character

I am using a shortcode to call some posts with a permalink using non Latin characters. However the urls get percent encoded ( showing up as %20%regfd etc) What is the best way to make sure urls are ...
0 votes
0 answers
21 views

Rewriting to decoded URLs across entire site

We have an information reference site that uses a plugin called WPAutomatic to pull in a few feeds and automatically creates posts. Sometimes items in the feed come in with undecoded URLs which crap ...
  • 1
0 votes
1 answer
30 views

Code block treats characters not being escaped

I want to add some 'c' and 'assembly' code in my post but the characters end up not being escaped, see the pictures below please: A C code that I put into the editor: #include <cstdio> Results ...
  • 101
0 votes
1 answer
193 views

Why does HTML entities are still encoded in Code Block?

In the Code Block if I type in reversed character, they are encoded to HTML entities: Input: Output: <pre class="wp-block-code"><code>'&#91;] </code></pre> ...
  • 318
0 votes
1 answer
627 views

Why does the custom HTML block not preserve the HTML characters?

For example it seems that the plain single-quote character ' (&#x27;) is converted to the right ones ’ (&#8217;) in the HTML page output. I understand the reason for this in regular Gutenberg ...
  • 318
0 votes
0 answers
140 views

How Can I Use Equal And Question Mark In Category Slug?

I need to add a question mark and equal the category url. I need this: site.com/stack?exchange=ask But Wordpress does not allow specific characters in url. So i tried to use html encodes in category ...
  • 1
0 votes
0 answers
69 views

Why is Wordpress swapping double quotes (") to curly quotes (“) and how do I stop it from happening?

I have imported HTML into a Wordpress page, it contains some HTML as follows: <a class="fancybox" href="bigger-image-path.jpg" title="<em>This is the image caption,&...
1 vote
1 answer
794 views

HTML Entities displaying improperly as malformed escaped code

I'm having a strange issue that I've never seen before. I moved a WordPress site from Siteground over to GoDaddy a few days ago, and now the site appears to have problems displaying HTML entities in ...
1 vote
1 answer
2k views

wp_query not searching with apostrophe

I'm trying to search WP_Query for the data containing the phrase "Dalton's Law" in meta_query. This is an AJAX search, and here's what I"m doing: //in this case $_POST['query'] is the phrase "Dalton'...
  • 37
1 vote
1 answer
52 views

The "\" is missing when comments is updated

When I update the comment in the following page, the “\” is missing. I find that the problem is due to the plugin buddypress. How to avoid the wordpress comment editor converting characters like “...
  • 113
0 votes
0 answers
229 views

Rewrite URL for Search + Special Characters / Umlaute

I want prettier search urls, like /suche/Danach+suche+ich/ So here is my code: add_filter("rewrite_rules_array", function($rules) { $newRules = array(); $newRules["suche/(.+)/?$"] = 'index....
0 votes
1 answer
390 views

special characters not supporting in wordpress

First I dont know from which thing I am facing problem. I have created a wordpress website and it was working fine. I have moved it later to justhost.com and then I have got this problem. Special ...
1 vote
0 answers
46 views

Why does the usermeta table contain html entities?

As a plugin developer, I have been storing special characters like ampersand as is in MySQL tables, then converting them to html entities after retrieving them for display. Now I discover that (for ...
  • 113
3 votes
1 answer
685 views

How can I stop wp_update_post messing up HTML example code?

I'm showing little pieces of example HTML/PHP code on the frontend (with syntax highlighting). The entries are displayed as FAQ custom posts, and have a plugin (CMS Tree page) to alter the menu order, ...
0 votes
2 answers
5k views

Wordpress 4 invalid username special charachters issue

I have some danish users that uses special chars like æøå and they can't log in to my wordpress blog. I tried on a fresh install on 4.2.2 and on 4.1.5 and it did not work, for example Andrew ...
  • 113
2 votes
2 answers
248 views

How do we remove mystical [X] from text? Image included

Wordpress has placed an uncalled for character on one of our page's text. We have a few hundred pages, and this only occurs on one. In the paragraph's text, between the words 'Music' and 'Students', ...
  • 191
0 votes
2 answers
471 views

Codex Function Problems When There is an Apostrophe in the Category Name

I'm working on a site, largely managed by categories. Two of the categories have apostrophes in them... ex. "Joe's Place" and "Tina's Lounge". (Actual titles changed, these are examples...) The ...
  • 306
0 votes
0 answers
390 views

Wordpress special characters coming in ascii code

The article title on this website is "Meet Youngest Art Director of Pakistan – Babrus Khan" The special character in the title is not encoded back when retrieved from Database and Hence I can see in ...
  • 123
1 vote
1 answer
73 views

Customize Plugin

I am trying to create custom welcome panel in dashboard for WP and can't see where I went wrong. It's not allowing me to add html.
  • 13
0 votes
1 answer
112 views

Why is `--` converted into ndash and how can I get rid of it?

I have a blog where I publish Linux tutorials. Some of the commands I listed have a -- before command-line arguments. e.g.: dpkg --get-selections. The problem is that WordPress automatically switches ...
  • 316
5 votes
2 answers
16k views

Special characters in WordPress UTF-8 [closed]

I have a problem regarding special characters that are appearing messed up on the front-end . mainly the get converted to question marks, or something like �?) Example - Frédèric becomes Fr�d�ric. ...
user avatar
2 votes
2 answers
7k views

How do I stop HTML entities in a custom meta box from being un-htmlentitied?

I have a custom meta box that is supposed to accept HTML, but the text I'm trying to input contains both double and single quotes (and ampersands), and it's messing up the saved data - each time I ...
  • 1,275