khen888
asked 6 years ago

Unneeded slashes appears beside single quotation mark when submitting question in DW Q & A:

 
This happen when I tried to submit question without being logging-in and left the email address blank.
This might happen when there’s error in submitting a question.
Please fix this.

1 Answers
DominicStaff
answered 6 years ago

WordPress converts the apostrophe literal ( ‘ ) into a different HTML entity code, the Right Single Quotation Mark ( &#8217 ). It should convert to the apostrophe entity which is ( &#39 ). In WordPress’s documentation (wp-includes/formatting.php) you can see the annotation that this is in fact true.
See the screenshot: http://prntscr.com/j029gj

You can try the following ways:
– Instead of simply typing the apostrophe, you can use the HTML code: '. So, instead of typing “Designwall’s Forum” you would type “Designwall’s 's Forum” in the problem area.
One issue you may run into with this is that it may only work on the first save. If you save the setting, widget, etc. a second time, you will get the backslash again. If the problem is in an area you will only update once, this may not be a problem.
– Also, If your hosting company gives you access to your php.ini file, you may be able to insert a variable that will solve this problem at the server level.
In cPanel, this setting can be accessed in the Software/Services panel under php.ini QuickConfig, which is towards the bottom of the main Control Panel.
If you find the magic_quotes_gpc setting in the php.ini QuickConfig, make sure it is set to “off”. If it is already set to “off” or you don’t have access to it, you can email your hosting support team to change or confirm this setting.

Powered by DW Question & Answer Pro