HTML entities provide a method of entering characters that cannot be expressed in the document's character encoding or that cannot easily be entered on a keyboard.

learn more… | top users | synonyms (2)

4
votes
1answer
174 views

get original dom element innerHTML without javascript processing

Background - in an article editor powered by TinyMCE for an enterprise in-house CMS behind large media site/s HTML <p>non-breaking-space: &nbsp; pound: &pound; copyright: ...
3
votes
1answer
463 views

How can I define an entity such as nbsp in an asp.net application

I have an asp.net application that renders and works correctly in all browsers. However when checking with the validator at http://validator.w3.org/ I get the following error: reference to undeclared ...
2
votes
1answer
321 views

Why isn't PHP's htmlentities() converting the œ character?

I'm having some trouble with PHP's htmlentities() / htmlspecialchars() functions. The string I am converting contains the character œ (html equivalent is '&oelig'), yet both htmlentities() and ...
2
votes
1answer
125 views

htmlentities on all text nodes of XHTML doc

Trying to encode all text nodes of an XHTML doc with numerical entities. Using saveXML() gives me the hex values, but I want the &#1234; strict numerical values. It also doesn't encode dashes and ...
2
votes
1answer
190 views

Using Html entity in a label

How do I add an html entity within a label. I am using ZK Ajax Framework. For e.g., <hlayout hflex="1"> <toolbarbutton label="More" /><html:b style="color: ...
2
votes
1answer
907 views

PHP: htmlentities not working with variable

I'm using htmlentities() to convert characters like Ç and ® to its character codes. I'm getting the texts from the MYSQL database. while($row = mysql_fetch_array($array, MYSQL_NUM)){ echo "<div ...
2
votes
1answer
106 views

Displaying feed with the correct html character entities

I have feed that's already broken down into the content I need. Part of that content contains things such as &\; and "\;. I'm using PHP's str_replace() to find and replace them to be their ...
1
vote
1answer
103 views

Why html entities displayed wrong when I retrieved data from a web page in Java

Why html entities displayed wrong when I retrieved data from a web page in Java: URL url = new URL("http://www.eslcafe.com/joblist/index.cgi?read=27334"); URLConnection connection = ...
1
vote
1answer
181 views

XML Creation using java translates CR in HTML Entity

I've got a pretty serious problem with XML Creation using standard java objects, my code is as follows: //Generate DOM DOMSource source = this.generateDomDocument(params...); //WRITE XML FILE ...
1
vote
1answer
348 views

Encode only non-ASCII characters to HTML entities, keeping HTML tags

I'm pulling text from a database, processing it, and uploading it as plain text to an HTML email creator. The email tool is internal to my company. It can take simple HTML tags, but it can't handle ...
1
vote
1answer
433 views

Is it better to use htmlentities when sending html emails with special characters?

I have phpmailer setup to send emails from the contact form. I have the page set to UTF-8 character encoding and specify the email encoding as UTF-8 as well within PHPMailer. This all works fine and ...
1
vote
1answer
215 views

For HTML entities, should I use the named syntax or numerical syntax?

For example, to represent <, is it better to use &gt; or &#60;, in terms of browser support? This page makes the claim that one should avoid name syntax because "Not all browsers may ...
1
vote
1answer
543 views

Problem with HTML entities inserted with JavaScript

I have the following JS to dynamically change the content of an HTML select list inside a form: <script type="text/javascript"> var provincias = []; provincias['bsas'] = new Array('Capital ...
1
vote
1answer
671 views

Ruby HTML scraper written in Hpricot having trouble with escaped HTML

I am trying to scrape this page: http://www.udel.edu/dining/menus/russell.html. I have written a scraper in Ruby using the Hpricot library. problem: HTML page is escaped and I need to display it ...
1
vote
1answer
467 views

How to Convert &amp;&amp;++&#37;&#37 in html page to normal string?

I working in MFC and get the following code in html : &amp;&amp;++&#37;&#37 actually it is &&++%% here is a table of specialcharacters, is there any API's to convert this ...
0
votes
1answer
37 views

Why does Codeigniter automatically convert special entities in the form validation class if validation fails?

I didn't realize this until now, but when using the CodeIgniter form validation class, if validation fails ($this->form_validation->run() === FALSE), all special characters in the post variables get ...
0
votes
1answer
29 views

php htmentities output not correct

I am trying to build a website that lists poi locations. I have been using the google PHP MYQL store locator tutorial but still have a few issues. The first problem is converting the string from the ...
0
votes
1answer
54 views

How can Unicode and html entities be normalized for processing markup using Perl v5.8.8?

We are using Perl version 5.8.8. I believe it has some Unicode (UTF-8) support but am not convinced that it's reliable. What is the best option using Perl 5.8.8 to process and preserve data ? What ...
0
votes
1answer
136 views

Knockout: Decoding html entities in an input field

I have a web app that allows users to submit and save HTML. The user types in the html s/he wants to use into several different fields. Some are text input elements and some are textarea elements. ...
0
votes
1answer
142 views

Preserving user input using PHP and htmlentities in form?

I'm trying to preserve user input in form, which works fine, but if there is no input and I press Submit button I get following error: Notice: Undefined variable: name in ...
0
votes
1answer
170 views

Mysterious characters in output with utf8_encode and utf8_decode

i want to print many strings of countries that i retrieve from my database but i have a mysterious caracter every time when i use : utf8_encode($string); the out put is (Algérie , Arménie ...
0
votes
1answer
97 views

How can I preserve HTML entities with Diazo?

I have the following simple Diazo rules file: <rules xmlns="http://namespaces.plone.org/diazo" xmlns:css="http://namespaces.plone.org/diazo/css" ...
0
votes
1answer
190 views

Html entities in tcpdf

I am using tcpdf to generate the pdf but I got the problem while displaying the strings having html entities in it. e.g A string RAH&#304;B is displayed as RAH?B whereas I just want to decode ...
0
votes
1answer
127 views

“&amp;” in XML validation using Xerces

I am using Xerces for validation of XML, but for an tag having enum as {Profit &amp; Loss} When I am giving value as Profit &amp; Loss, Xerces is giving error: The entity name must ...
0
votes
1answer
395 views

How can I convert all HTML Entities and unicode chars to english equivalents for sorting in SQL?

I have database data that has special characters in both unicode and html entity format in the data. I need to sort the list of results alphabetically however, some of the unicode data and html ...
0
votes
1answer
189 views

Displaying xml in textarea without rendering htmlentities

I've been reading about this for a while now and can't find the solution. This looks like the solution I need: How to stop html textarea from interpreting html entities into their characters But when ...
0
votes
1answer
59 views

Does using htmlentitiesdecode render/parse HTML?

I have a forum which allows administrators to post HTML. This is a custom forum, so we're trying to make sure that normal users can still post HTML markup but not have it render. If I store posts as ...
0
votes
1answer
112 views

Pagedown Escaping Special Characters in Code Sections with Django

I am using the Pagedown implementation of the Markdown editor used here on Stack Overflow, and my project is using Django. The problem I am having is that special characters like < in Markdown code ...
2
votes
0answers
61 views

How can I prevent Jboss from translating xml entities into html entities?

older Webkit versions have a problem with html-entities such as nbsp and ouml etc. As a solution I was advised here to change my html-entities to xml-entities. The problem should then be solved, but ...
1
vote
0answers
47 views

php e-mail to-field with strange characters

I'm having trouble getting my code in PHP to send out emails to persons with special characters in their names, like é à ö. Here's the snippet of the coding: $firstname = ...
1
vote
0answers
177 views

How to decode HTML entities when saving an XML file?

I have the following code in my PHP script: $str = '<item></item>'; $xml = new DOMDocument('1.0', 'UTF-8'); $xml->formatOutput = true; $xml->load('file.xml'); $items = ...
1
vote
0answers
155 views

&dagger and &Dagger in Excel on Mac

I have an html file that gets written to be downloaded with Excel. In that file I have the † and &Dagger entities being used. On Windows, Excel shows the dagger correctly but on Mac it does ...
1
vote
0answers
373 views

Solr indexing HTML entities

I am indexing documents by Solr, which were scraped from the web. The documents contain HTML entities (such as &pound; or &#163;). Mostly the documents contain central european characters. Is ...
1
vote
0answers
398 views

ASP.NET/.NET: Method to determine whether string is or contains HTML entity

Is there a method anywhere in the .NET framework or System.Web that will tell me whether a string contains an HTML or is one? Should I just Server.HtmlEncode(myString) and see if its length is longer ...
0
votes
0answers
25 views

Android JSON Translate HTML Entities

I'm trying to pull a JSON output and populate a ListView with it. Everything is working, except the resulting text has html entities in it instead of the symbols, for example £ is &pound; and - is ...
0
votes
0answers
21 views

Convert Open Office XML Symbols to Html Entities

I want to read special symbols inserted in ms-word 2007 or later using Open Office XML and have to display it in html page using ASP.NET MVC 4. I have read the chars of the symbol using var ...
0
votes
0answers
24 views

How to enable linebreak, mysql_escape_string and htmlentities at the same time?

I am creating something like a facebook wall (post commenting system) mysql_real_escape_string(htmlentities($_POST['wallcomment'])); I store the result return by the above code in the tables, when ...
0
votes
0answers
32 views

How do HTML entities in the alt or title attirbute of an image affect tool tips and audio user agents?

BACKGROUND I was given text from a copywriter which contained a lot of © . So in Sublime Text Editor, I did a Search and replace with: &copy; A lot of the text was already added to the images ...
0
votes
0answers
80 views

java utf-8 to decimal

Requirement is to read a file. Base on few rules, modify text and write them into a different file. Source file is of UTF-8 format and all special characters needs to be converted to an HTML entity ...
0
votes
0answers
26 views

jQuery + XML and for()

I am making a website with portions of the page updated with XML. Most of the DOM scripting is accomplished with jQuery however to parse the XML I am using a for() loop. Is there are more native way ...
0
votes
0answers
127 views

php how to use stripslashes and htmlentities to prevent breakdown into ASCII with UTF-8

I was asking about the way to properly maintain characters from appearing in ASCII once the email is dispatched from the PHP email script. For example, if an email is sent with the following subject: ...
0
votes
0answers
59 views

How do you add custom mark-up to a PHP comment system while using addslashes()

So, I'm using: $comment_content = sanitize(mysql_real_escape_string(addslashes(htmlentities($_POST['comment_content'])))); And would also like this code to use custom mark-up for such things as ...
0
votes
0answers
143 views

Java Export to CSV - Replace HTML Entity

I am using Java to export one CSV. Its a lotus notes based app, and I am writing the output to the output printwriter object. pw.println("Content-Type: text/text; charset=iso-8859-1"); ...
0
votes
0answers
114 views

Chrome is guessing HTML entities?

I have a simple function that mimics the "ellipses" effect on the end of text as a cross browser solution. The function removes 2 characters from the end of the text and sees if there is still an ...
0
votes
0answers
56 views

adding new line to db , but without /n

Simple example $text = 'First line second line'; I want the text to have a new line but in the db , no to be stored /n I try with htmlentities(),htmlspecialchars() and I also try this $text = ...
0
votes
0answers
75 views

When search term is a quoted string, and content contains an HTML entity “&quot;”, Solr highlights the “quot”

The content of the field that Solr has indexed contains encoded HTML entities, e.g., &quot;. When the search term contains quotation marks, i.e. "human rights", this is the HTML that Solr ...
0
votes
0answers
130 views

How to encode html entities in input using Antisamy

When I pass in &nbsp; to Antisamy, it outputs the same thing back. How would I make it return &amp;nbsp;?
0
votes
0answers
119 views

ios NSXMLParser

I have some xml file. for example: I can get from all text like a NSString from tag < text > ? For example what I want to get: NSString *textTagDescription = For parsing xml I use ...
0
votes
0answers
173 views

PHP - HTML Formatting within a htmlentities function

I'm working on a php file that generates a kml file from a mysql table which I then can use with google maps. I have the file up and running BUT, I'm having some issues with the text that should ...
0
votes
0answers
278 views

JS Html Entity Decoding (jquery 1.7.1)

With the latest update, the following code broke. It doesnt append the code in lb_l_ret.lbcode anymore. This code however, is html entities escaped. How can I make it work? Or how can I decode those ...

1 2