Questions tagged [character-entities]

45 questions
1
vote
1 answer

Two Different Types of Character Entities?

Clearly there are two different types of character entities in HTML/XML. There are the ones that are specified by numbers, i.e. < and > And then there are the ones that are specified by letters, < and > Is there a specific name for…
leeand00
  • 25,510
  • 39
  • 140
  • 297
1
vote
1 answer

How to convert html entities of greek language to actual symbols in php

I have greek site and all posts in it looks in sourse like:

Ο Μπόνους Γύρος Drunken Clam θα δείτε θα…

1
vote
0 answers

what is   and why is it causing a weird character on my html output

I have the following code in XSL:  
It now produces the following: Not quire sure what is going on here and how to remove the weird character. I think its a character…
somejkuser
  • 8,856
  • 20
  • 64
  • 130
1
vote
1 answer

HTML character entities stripped when building org.w3c.dom.Document

I have a Java XML utility class. The buildDocument() method accepts an XML string and returns org.w3c.dom.Document. The particular XML I'm passing to it is an xhtml 1.1 document. The issue is if there are HTML named entities like,

Preserve dagger…

wsams
  • 2,499
  • 7
  • 40
  • 51
1
vote
1 answer

Facebook object debugger doesn't recognize :

OK, I have an ":" in the page title so I use the HTML5 character entity for it viz. : Facebook's og scraper doesn't seem to recognize it and converts it to a &colon; Here's an example: Source FB scraper result How do I fix it ?
karth
  • 635
  • 3
  • 13
  • 25
1
vote
4 answers

Turning HTML character entities to 'regular' letters... why is it only partially working?

I'm using all of the below to take a field called 'code' from my database, get rid of all the HTML entities, and print it 'as usual' to the site:
Jack
  • 9,615
  • 18
  • 72
  • 112
1
vote
2 answers

Encoding xml using ascii encoding instead of character entities

Alright, so here is my issue. I need to generate xml in Java to pass onto another application. I started off thinking this would be easy using an org.w3c.dom.Document. Unfortunately the application I need to pass the XML off to requires that special…
Marshmellow1328
  • 1,205
  • 3
  • 18
  • 27
1
vote
1 answer

How to use special characters like accented characters in JS?

In HTML, there are character entities to input any type of character. In javascript, they don't work in strings. I want to compare a string with an elements value with an accent (written in Spanish): HTML element:

Información

JS…
Jonathan Lam
  • 16,831
  • 17
  • 68
  • 94
1
vote
2 answers

Unescape html character entities

I'm trying to store values from a database into HTML5 data attributes. I can escape them fine because of this answer, but how do I reverse that?
user1382306
1
vote
2 answers

Why does this regex/DOM character entity tester return `undefined`?

var str = 'let us pretend that this is a blog about gardening&cooking; here&apos;s an apostrophe & ampersand just for fun.'; This is the string I'm operating on. The desired end result is: "let us pretend that this is a blog about…
wwaawaw
  • 6,867
  • 9
  • 32
  • 42
0
votes
0 answers

Decimal entities replaced by Hexadecimal entities in C# XML

I've following decimal entities and for TAB and NEWLINE characters in attributes in XML file. After processing the file and saving, above decimal entities are replaced with its hexadecimal equivalents i.e and …
0
votes
0 answers

ElementTree's .write() changes strings with " to &quot;

In my code, I am changing an existed formatted string in XML with predefined format with ElementTree in Python. {"name":"Test123","type":"} New text adding by: ValueNode.text =…
VilemRousi
  • 2,082
  • 4
  • 24
  • 34
0
votes
1 answer

Character entities in PHP and SVG

For my HTML content I have been using htmlentities($instring,ENT_QUOTES|ENT_HTML401,"UTF-8",false) to replace certain characters with HTML entities. However, I also serve SVG content, and some of the entities are not understood, such as …. Is…
posfan12
  • 2,541
  • 8
  • 35
  • 57
0
votes
2 answers

Preserve decimal character entities in XML C#

I use XmlDocument class for loading XML and XmlWriter class for generating the file. I wanted to preserve the decimal character entities (characters in bold) that's present in the xml, like the one below,
0
votes
0 answers

XSLT transforming a file defined in ASCII that contains Unicode character entities

I'm trying to process an XML file that claims (correctly I believe) to be encoded in 7-bit ASCII itself, but it contains text values that include character entities like × that resolve to Unicode characters. The problem is (I think) is that the…