html-entities

Using HTML Entities in a Zend Form Select

I am populating a Select form element, and if I try to use HTML Entities in the value, it get's converted, rather than displaying the special character. This code: $form->field_name->addMultiOption('value', '&nbsp;&bull; label'); Renders: <option value="one">&amp;nbsp;&amp;bull; label</option> But I want it to be: <option value="...

Resolving html entities with NSXMLParse on iPhone

Hi all, i think i read every single web page relating to this problem but i still cannot find a solution to it, so here i am. I have an HTML web page wich is not under my control and i need to parse it from my iPhone application. Here it is a sample of the web page i'm talking about: <HTML> <HEAD> <META http-equiv="Content-Type" ...

What is encoding characters the URL? Browser or PHP?

Imagine this simple form <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> <fieldset> <legend>Contact Me</legend> <label for="email">Email:</label> <input type="text" name="email" id="email" /> <button type="submit">Submit</button> </fieldset> </form> Now imagine it is accesse...

FullCalendar/JSON event feed problem

I am using a php/MySQL driven event feed to JSON. I am also trying to use greek html entities (i.e. &Gamma-with the semicolon) in the title for the event. Because FullCalendar will not let me see all the processies in firebug I can't see exactly what is going on but it will not render the , etc. I have tried all the combinations I can...

what is the name of this type of encode ?

If you copy and paste the following text in a html page, &#1575;&#1606;&#1608;&#1575;&#1606; you will the following Arabic text: انوان My question is: What is the name of this type of encoding that include numbers and hash (#) sign, and how decode it in PHP? ...

Replacing special characters from HTML source

I'm new to HTML coding and I know HTML has some reserved characters for its use and it also displays some characters by their character code. For example -: Œ is &#140; © is &copy; ® is &reg; I have the HTML source in std::string. how can i decipher them into their actual form and replace from std::string? is there any libra...

GQL: I'm storing JSON in the DataStore. All json is getting converted to html entities, how to avoid this?

The tittle says most: I'm storing JSON in the DataStore. All json is getting converted to html entities, how can I avoid this? Original I had myJson = db.StringProperty() it complained the json i had was to long and StringProperty had a limit of around 500 chars. Sugesting to use TextProperty instead. It inserted without problems bu...

How to substr html entities properly?

Hi everyone. I have like this : $mytext="that&#039;s really &quot;confusing&quot; and &lt;absolutly&gt; silly"; echo substr($mytext,0,6); The output in this case will be : that&# instead of that's What i want is to count html entities as 1 character then substr, because i always end up with breaked html or some obscure characters at...

C#, function to replace all html special characters with normal text characters

I have characters incoming from an xml template for example: &amp; &gt; Does a generic function exist in the framework to replace these with their normal equivalents? ...

Leave entity intact in XML + XSLT

I transform XML to (sort of) HTML with XSL stylesheets (using Apache Xalan). In XML there can be entities like &mdash;, which must be left as is. In beginning of XML file I have a doctype which references these entities. What should I do for entity to be left unchanged? <!DOCTYPE article [ <!ENTITY mdash "&mdash;"><!-- em dash --> ]> ...

Converting html entities into their values in python

I use this regex on some input, [^a-zA-Z0-9@#] However this ends up removing lots of html special characters within the input, such as #227;, #1606;, #1588; (i had to remove the & prefix so that it wouldn't show up as the actual value..) is there a way that I can convert them to their values so that it will satisfy the regexp exp...

Best practice. Do I save html tags in DB or store the html entity value?

Hi Guys, I was wondering about which way i should do the following. I am using the tiny MCE wysiwyg editor which formats the users data with the right html tags. Now, i need to save this data entered into the editor into a database table. Should I encode the html tags to their corresponding entities when inserting into the DB, then w...

Alternative to System.Web.HttpUtility.HtmlEncode/Decode?

Is there any 'slimmer' alternative to the System.Web.HttpUtility.HtmlEncode/.Decode functions in .net 3.5 (sp1)? A separate library is fine.. or even 'wanted', at least something that does not pull in a 'whole new world' of dependencies that System.Web requires. I only want to convert a normal string into its xml/xhtml compliant equival...

Datatables pagination characters "<<" and "<" not displaying correctly in IE and Safari

I'm using the DataTables jQuery plugin and am having issues with the First and Previous pagination links displaying correctly in IE and Safari (Firefox and Opera work). "<<" and "<" display as "<" and "". $(document).ready(function () { oTable = $('#fileList').dataTable({ "bJQueryUI": true, "sPaginationTy...

What is difference between UTF-8 and HTML entities?

What is difference between UTF-8 and HTML entities? ...

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 than myString's length before encoding? ...

How to convert UTF-8 to text in HTML entity ?

I have a downloader program that download pages from internet . the encoding of each page is different , some are in UTF-8 and some are Unicode. For example : &#97; that shows 'a' character ; pages full of this characters .We should convert this encodings to normal text . I used the UnicodeEncoding class in c# , but they do not help me ...

Converting HTML to its safe entities with Javascript

I'm trying to convert characters like < and > into &lt; and &gt; etc. User input is taken from a text box, and then copied into a DIV called changer. here's my code: function updateChanger() { var message = document.getElementById('like').value; message = convertHTML(message); document.getElementById('changer').innerHTML =...

XHTML5 and HTML4 character entities

Does XHTML5 support character entities such as &nbsp; and &mdash;. At work we can require specific software to access the admin side of the site, and people are demanding multi-file-upload. For me this is an easy justification to require migrating to FF 3.6+, so I'll be doing it soonish. We currently use XHTML 1.1, and upon moving to HTM...

How to not transform special characters to html entities with owasp antisamy

Hello, I use Owasp Anti samy with Ebay policy file to prevent XSS attacks on my website. I also use Hibernate search to index my objects. When I use this code: String html = "special word: été"; // use the Ebay configuration file Policy policy = Policy.getInstance(xssPolicyFile.getInputStream()); AntiSamy as = new AntiSamy()...