Entities in XML examples
-
Hi,
I want to make a point about XML in my blog. I have a line in which I would like to SHOW an entity in code: ? :
<p>What are you looking at?</p>
However, The ? keeps showing up as the question mark it stands for. So I tried escaping the ampersand:
<p>What are you looking at?</p>
However this does not help, somehow WordPress does a double convert and keeps showing this as the question mark (first converting the & to a & and then the resulting ? in a ?).
How can I accomplish what I want: Have a ? show up as ? ?????
Erik Siegel
PS: I do not want to use the [sourcecode] trick because I don’t like its styling.
But somehow WordPress keeps givingThe blog I need help with is: (visible only to logged in users)
-
All right, even in the blog postings this is formatted wrong… So I cannot even make my point. Grrr.
-
Try again without the semicolons at the end of the entities to prevend WOrdpress converting them:
I want to make a point about XML in my blog. I have a line in which I would like to SHOW an entity in code: ? :
What are you looking at?
However, The ? keeps showing up as the question mark it stands for. So I tried escaping the ampersand:
<p>What are you looking at&#x3F</p>
However this does not help, somehow WordPress does a double convert and keeps showing this as the question mark (first converting the & to a & and then the resulting ? in a ?).
How can I accomplish what I want: Have a &#x#F (plus semicolon) show up as ? ?????
Erik Siegel
PS: I do not want to use the [sourcecode] trick because I don’t like its styling.
- The topic ‘Entities in XML examples’ is closed to new replies.