How to Display Backslash In WordPress Posts

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.

facepalm

facepalm

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 ;

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

Tags: wordpress

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.

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...