Questions tagged [character-entities]
45 questions
76
votes
9 answers
What's the HTML character entity for the # sign?
What's the HTML character entity for the # sign? I've looked around for "pound" (which keeps returning the currency), and "hash" and "number", but what I try doesn't seem to turn into the right character.

chimerical
- 5,883
- 8
- 31
- 37
19
votes
6 answers
Convert HTML Character Entities back to regular text using javascript
the questions says it all :)
eg. we have >, we need > using only javascript
Update: It seems jquery is the easy way out. But, it would be nice to have a lightweight solution. More like a function which is capable to do this by itself.

nuaavee
- 1,336
- 2
- 16
- 31
13
votes
3 answers
css html entity
I'm trying to add an html entity (→ →) using css when a link is hovered with the following css:
#menu1 a:hover:after {
content: "→";
}
But the output is just → instead of →. The same problem happens when using the decimal (8594)…

Christopher
- 2,103
- 4
- 22
- 32
10
votes
3 answers
PostgreSQL replace HTML entities function
I've found this very interesting function on internet:
CREATE OR REPLACE FUNCTION strip_tags(TEXT) RETURNS TEXT AS $$
SELECT regexp_replace(regexp_replace($1, E'(?x)<[^>]*?(\s alt \s* = \s* ([\'"]) ([^>]*?) \2) [^>]*? >', E'\3'), E'(?x)(< [^>]*?…

Britto
- 475
- 1
- 8
- 24
8
votes
3 answers
Tab Character Entity for XHTML?
Does anyone know what the character entity for a tab is in xhtml?
(Um if there is one)...

leeand00
- 25,510
- 39
- 140
- 297
6
votes
1 answer
Does .NET have built-in functions mapping between character entities and their unicode values?
& Eacute ; \u00C9
& egrave ; \u00E8
& eacute ; \u00E9
& apos ; \u0027
something like:
f("'") = '\u0027' where f :: string -> char
g('\u0027') = "'" where g :: char -> string
Or is there a third-party library with a BSD or MIT style…

Cetin Sert
- 4,497
- 5
- 38
- 76
5
votes
4 answers
Is there a Java XML API that can parse a document without resolving character entities?
I have program that needs to parse XML that contains character entities. The program itself doesn't need to have them resolved, and the list of them is large and will change, so I want to avoid explicit support for these entities if I can.
Here's a…

Kaypro II
- 3,210
- 8
- 30
- 41
4
votes
1 answer
Parsing with SAX and handling character entities
I am parsing a MathML expression with SAX (although the fact that it's MathML may not be completely relevant). An example input string is

Paul Reiners
- 8,576
- 33
- 117
- 202
4
votes
2 answers
ParseError: undefined entity while parsing XML file in Python
I have a big XML file with several article nodes. I have included only one with the problem. I try to parse it in Python to filter some data and I get the error
File "", line unknown
ParseError: undefined entity Ö: line 90, column…

Tasos
- 7,325
- 18
- 83
- 176
3
votes
1 answer
Python Convert string to HTML char equivalent
Let's say we have a string
Bruce Wayne is Batman
When I convert this string to HTML characters, the output will be
Bruce Wayne is Batman
I am trying…

7h1n0b1
- 33
- 1
- 3
2
votes
0 answers
What is the earliest version of TinyXML that correctly translates character entities?
According to TinyXML documentation, the latest version of the software correctly translates the standard five XML character entities (&, ", ', >, <) into their human-readable equivalent when you call Value() on a TiXmlText object.
By contrast, this…

Steven D.
- 311
- 4
- 10
2
votes
5 answers
Seeing strange character for apostrophe on wordpress based page, but only in Internet Explorer
I'm gettign this strange character instead of an apostrophe on a page that's powered by Wordpress, but only in Internet Explorer. Other browsers (chrome, firefox) display as the actual apostrophe.
’
Can somebody tell me what the problem is?
Here's…

Joel Glovier
- 7,469
- 9
- 51
- 86
2
votes
3 answers
What are the longest and shortest HTML character entity names?
There are a million cheatsheets all around the tubes that enumerate to different levels of comprehension the character entities specified by various versions and specifications of HTML. I don't want to trust any particular one of them, so I figure…

wwaawaw
- 6,867
- 9
- 32
- 42
1
vote
1 answer
Encoded characters shows ok on HTML but get literally shown on SVG
I have a HTML page where a SVG element is created through javascript.
If I use encoded characters in the HTML portion of the page, like µ/m³, it's perfectly rendered as µ/m³
However, when I put the same text inside a SVG text element, the…

Bardo
- 2,470
- 2
- 24
- 42
1
vote
0 answers
wordpress - post editor suddenly converting "<" to "<";. how can i avoid this situation?
I have some wordpress sites in my local pc.
One day I did not see the images suddenly.
So, I checked markup and admin editor.
Site markup :
" "
(images are not visible because surrounded by double quotes)
Admin editor : when I add images, I…

hazzys
- 11
- 3