similar to: unescapeHTML return incorrect string under firefox

Displaying 20 results from an estimated 100 matches similar to: "unescapeHTML return incorrect string under firefox"

2005 Mar 06
3
Search and convert string function
Hi all, I want to do this kind of function In R enviroment : For example : R <- 4 testString <- "I love $R" then search this testString, when find "$R",replace "$R" to R ,and because the value of R is 4 So the final string I want to get is "I love 4" How can I implement? Thanks advance Michael
2013 Feb 09
2
character strings with embedded commands: perl "/gee" ?
dear R experts---I am trying to replicate a perl feature. I want to be able to embed R commands inside a character string, and have the string be printed with the command executed. my perl equivalent is my $a=10; my $teststring = "the expression, $a+1, is ::$a+1::, but add one more for ::$a+2::\n"; $teststring =~ s/::(.*?)::/$1/gee; print $teststring; of course, R does not use
2011 May 31
1
Please HELP
Hi R people. &nbsp; I have a problem. What can I create by using functions the combinations of&nbsp;distances in multiple comparisons tests such as duncan multiple range test? &nbsp; cur=sample(rnorm(15),15,replace=TRUE) varr=factor(c(rep("var1",5),rep("var2",5),rep("var3",5))) dat&lt;-data.frame(cur, varr) lmm&lt;-lm(cur~ varr,data=dat)
2005 Jul 18
1
levels() deletes other attributes
Dear All, it seems to me that levels() deletes other attributes. See the following example: ## example with levels f1 <- factor(c('level c','level b','level a','level c'), ordered=TRUE) attr(f1, 'testattribute') <- 'teststring' attributes(f1) levels(f1) <- c('L-A', 'L-B', 'L-C') attributes(f1) If I run it, after
2004 Dec 02
1
SJava convert problem
Consider this Java class: class myClass { final public static String[] testString () { return new String[]{"my", "name", "is"} ; } final public static int[] testInt () { return new int[]{5, 10, 15}; } final public static char[] testChar () { return new char[]{'x', 'y', 'z'}; } }
2011 Aug 23
1
Implementing a "plugin" paradigm with R methods
Dear list, I was wondering how to best implement some sort of a "plugin" paradigm using R methods and the dispatcher: Say we have a function/method ('foo') that does something useful, but that should be open for extension in ONE specific area by OTHERS using my package. Of course they could go ahead and write a whole new 'foo' method including the features they'd
2009 Dec 02
1
read.csv confused by newline characters in header (PR#14103)
Full_Name: George Russell Version: 2.10.0 OS: Microsoft Windows XP Service Pack 2 Submission from: (NULL) (217.111.3.131) The following code (typed into R --vanilla) testString <- '"B1\nB2"\n1\n' con <- textConnection(testString) tab <- read.csv(con,stringsAsFactors = FALSE) produces a data frame with with one row and one column; the name of the column is
2011 Apr 30
3
Copying to R a rectangular array from a Java class
Bare test code: My simple Java test class source and R test code follow: public class RJavTest { public static void main(String[]args) { RJavTest rJavTest=new RJavTest(); } public final static String conStg="testString"; public final static double con0dbl=10000001; public final static double[]con1Arr=new double[] { 10001,10002,10003,10004,10005,10006 }; public final static
2011 Nov 04
1
add dynamic nested attributes without nested form gem
Hello people In my rails 3.0.9 app I''m trying to add nested attributes dynamically, but I don''t want to use "nested form gem" So I found this example https://github.com/alloy/complex-form-examples/blob/a234fde4419836f277d7e340657f1d8418911d68/app/helpers/projects_helper.rb but this code doesn''t work module ProjectsHelper def
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 the Google Groups "Ruby on Rails:
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/.
2010 Jun 14
3
remove last char of a text string
Dear R experts, is there a simple way to remove the last char of a text string? substr() function use as parameter start end only... but my strings are of different length... 01asap05a -> 01asap05 02ee04b -> 02ee04 Thank you all, Gianandrea -- View this message in context: http://r.789695.n4.nabble.com/remove-last-char-of-a-text-string-tp2254377p2254377.html Sent from the R help mailing
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.
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
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 Feb 07
1
Error undefined method `of_caller'' for Binding:Class
Hi all, I have the following helper method: def collapsible_fragment(collapsed, &block) html = ''<div>'' html << capture(&block) if( block_given? && !collapsed) html << ''</div>'' Binding.of_caller do |binding| concat(html, binding) end
2010 Jul 19
0
Protect from forgery for Rest destroy action ???
Hi !! I''m reading the rails guides about security, i had a question about the forgery protection If we consider a standard Restful resource ( generated with scaffold for example ), the update and create actions are protected from forgery attacks thanks to the authenticity token, but what about the destroy method ?? &lt;a href=&quot;/posts/2&quot;
2007 Jun 13
0
Speex has been added to Softonic
Greetings from Softonic, We just wanted to let you know that Speex has recently been added to our online software listing. You can see the entry for your program here: http://en.softonic.com/ie/42915 Softonic is the largest download portal in Europe and the only one in the world offering free software downloads and reviews for the Spanish, German and English speaking markets. Feedback We
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
2009 Dec 04
0
(PR#14103) read.csv confused by newline characters in
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --27464147-536455723-1259929222=:18586 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8BIT Content-ID: <alpine.LFD.2.00.0912041222341.18586 at gannet.stats.ox.ac.uk> It's not to do with pushback per