search for: unescapehtml

Displaying 11 results from an estimated 11 matches for "unescapehtml".

Did you mean: escapehtml
2007 Aug 01
0
The escapeHTML and unescapeHTML functions on Internet Explorer
I have a question about the escapeHTML and unescapeHTML functions. I''m using the prototype.js in a project and noticed that Internet Explorer needs to also have double quotes escaped/unescaped. Has anyone else run into this problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to...
2007 Dec 11
1
unescapeHTML return incorrect string under firefox
function testUnescapeHTML() { var testString = "<div>&lt;a hrer="#"&gt;test&lt;/a&gt;</div>" } this simple test function return string "<div><a href="#">test</a></ div>" under internet explorer,and return "<a herf="#&q...
2006 May 18
2
Utility to translate HTML character entities into text?
Anyone know of a Ruby utility that will translate HTML character entities into text? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2005 Sep 30
1
Ampersand in Auto Complete Entry Broken
Hi, I have been playing around with the autocomplete field in Rails 0.13. I have noticed that if I have an ampersand in the value such as "A&E", if I click on the entry in the autocomplete list, I am left with just A in the text box. I have narrowed it down to: String.unescapeHtml() in prototype.js as what strips the & and what follows it from the value. It strips it regardless of whether I use & or &amp; in the actual values that I use in the autocomplete list. It appears that when div.innerHTML is set to some value like ''A&E'' it doesn...
2005 Jul 08
8
Integrating script.aculo.us into existing javascript codebase
Hi, I''m new to this mailing list, so first off, a big THANK YOU for the script.aculo.us and prototype.js libraries. I''m trying to integrate script.aculo.us into an existing pretty large Javascript codebase (see http://openrecord.org). I''m running into a problem with prototype.js and the existing codebase''s use of for/in loops over an Array.
2006 Aug 15
4
escaping html?
Hi I have a wysiwyg html ditor in my app. How do I escape html written to the database and encoding when I display the content> Ty Pieter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060815/d8c50941/attachment.html
2006 Jun 22
0
escaped HTML in a select
Gday All; I have some HTML in a DB like &deg; and when I send it to the select helper it escapes it out. I have tried CGI::unescapeHTML() as well. Any ideas? Matta -- Posted via http://www.ruby-forum.com/.
2006 Jun 04
3
Absolutize URLs in a string
I wonder - do we have some helper/processor/gem to automatically convert all URLs in a passed string to their canonical equivalent - i.e. with the protocol, host and such prepended based on the Rails environment. Super-duper infty for RSS feeds (I hate their requirement for canonical URLs everywhere). -- Julian ''Julik'' Tarkhanov please send all personal mail to me at
2006 Jul 18
10
searching with chinese chars
Hi all, maybe not a Ferret question, but I assume here might have came across that already. I wrote a simple CGI app that adds docs into a Ferret index. The idea is testing asian languages input and searching. The script that does the input seems to be OK. As David mentioned in a question I made a little while ago, Ferret''s index is agnostic, in the sense that you can store anything in
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...}; Ajax.InPlaceEditor = Class.create({ initialize: function(element, url, options) { @@ -604,7 +604,7 @@ Ajax.InPlaceEditor = Class.create({ this.triggerCallback('onEnterHover'); }, getText: function() { - return this.element.innerHTML; + return this.element.innerHTML.unescapeHTML(); }, handleAJAXFailure: function(transport) { this.triggerCallback('onFailure', transport); @@ -780,7 +780,7 @@ Ajax.InPlaceCollectionEditor = Class.create(Ajax.InPlaceEditor, { onSuccess: function(transport) { var js = transport.responseText.strip(); if...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server