How to Display Backslash In WordPress Posts

Written by Allen White on. Posted in General, Web

So, this site has been up for 2+ years, and in all this time ive typed posts with paths, directories, registry keys the lot. Not ONCE did I notice that the backslash was not being displayed correctly until I did a site rewrite a month or so ago.



When you type “\” wordpress classed tis as a stop character and will not display it as it thinks it could be a possible security issue. The way to get around its as follows.

When you edit your wordpress post flip to HTML view.

wordpress html view

wordpress html view

Then where you want the “\” to be enter this ASCII code

& # 9 2 ;

Then make sure you SAVE in HTML view
This will now show the “\” Backslash correctly.

Allen White
Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin.


Leave a comment


(c) Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.
!-- BuySellAds On-Site Shopping Cart -->