Thursday, November 15, 2012

Answers > How to Print the Code for Special Charecters in XHTML?

How to Print the Code for Special Charecters in XHTML?

by nForms on November 28, 2011

Using XHTML, how can I display the code used to produce special characters without it being changed into the special character the code represents, is there some code of escape sequence I can use?

eg,

I wish to display "¢ = the cent symbol, ¢"

Thanks.

Tags: , , , , , ,

Similar XForms | XML Posts

{ 1 comment… read it below or add one }

fjpoblam May 9, 2011 at 9:36 pm

It’s difficult for me to type here on Yahoo! but let me explain. No spaces in your XHTML code for all this. There’s an XHTML symbol for ampersand. It combines an ampersand followed by the character string "amp" and a semicolon. Place that followed by either the word "cent" and a semicolon or the symbol "#" and a 162 and a semicolon. Got it?

The gist of it is, use the character string ‘& amp ;" instead of the usual ‘&’ in your usual initial display of the term to be displayed for illustration.

Previous post:

Next post: