Displaying 20 results from an estimated 40000 matches similar to: "RedCloth + security = h(textilize(@company.description)) ?"
2006 Mar 10
2
textilize != RedCloth.new ?
For me, textilize(stuff) produces nasty stuff - <br>''s instead of 
enclosing <p>''s and some closing <h*>''s are missing. RedCloth.new(stuff) 
works fine though. Isn''t textilize supposed to produce the same output? 
Or do I need to tweak something?
Joe
-- 
Posted via http://www.ruby-forum.com/.
2005 Dec 21
8
textilize - redcloth
Hi,
I''m using textilize with redcloth 3.0.4. Everything works best except 
that paragraphs are not translated as an HTML paragraph
When I write something like:
*first paragraph*
second paragraph
the output is without paragraph:
*first paragraph*
second paragraph
Any help??? Thanks
Jörg
2011 Jan 23
2
RedCloth 4.1.1 vs. 4.2.3 - weird behaviour with notextile
For a community project I aim to combine RedCloth and Coderay and on doing 
this, I might have found an issue with RedCloth.
I pushed a demo to Github: 
https://github.com/markusproske/redcloth_coderay_demo
The index (http://localhost:3000/) demonstrates the issue.
In brief: 
A page consist of textile. The textile contains @@@ruby somecode @@@
The textile is first feed into Coderay via a helper
2006 May 11
3
Textile/RedCloth and h() incompatible?
If a user enters the Textile-based code for an image, say:
!>graphic.png!
the textile() method will successfully render a right-float image. Now, 
if I want to escape the user''s text using h(), the ''>'' is turned into an 
&. Obviously, the image then fails to render in a browser. Is there 
a work around for this?
I guess what I''m really asking
2005 May 24
3
textilize/markdown/sanitize for messageboards, oh my!
Hullo, fellow Railsers!
(warning: this isn''t a 100% Rails specific question, but I guess it
very much applies to what a lot of us are currently doing.)
For a project that involves messageboard functionality I''m looking for
a good way of sanitizing user input, so the silly fools, err, my
wonderful users don''t mess things up too much. I''ve played around with
2005 Dec 24
2
Textilize on ajax update
I''m writing a basic to-do
application. I''m using a form_remote_tag to submit the entry to my
controller, which then returns the entry to be displayed in the table
of to-do items. However, I''d like to be able to "textilize" the entry
without having to reload the page. Is there any way to have my ajax
function textilize the text before displaying it in the list?
2006 Mar 07
6
Anybody use Red|Blue Cloth?
Does anybody use and prefer Redcloth (or bluecloth, which appears to be 
alpha)? Does it affect performance much? Is there a way to get it to 
automatically process templates without having to call textilize?
Thanks,
Joe
-- 
Posted via http://www.ruby-forum.com/.
2006 Mar 25
2
Textilize problems with line breaks
I''m having a problem formatting some text. I have a textarea that I  
input my text into, which will then be put into an e-mail and sent out.
The problem I am having is when there is a single line break.  
Multiple line breaks work fine (hitting enter twice), but single line  
breaks don''t seem to work properly.
Take the following input:
Line1.
Line2.
Line3.
Line4.
Using
2006 Sep 18
2
RedCloth !image! bug with filter_html
Hi all!
I am trying tu set up RedCloth for user-submitted comments. And here is 
my problem. The :filter_html option just breaks images :-(
For example, if I try in irb:
string= "Some textile !agif.gif! and textile again"
RedCloth.new(string, [:filter_html, :filter_styles]).to_html(:textile)
I get:
NoMethodError: You have a nil object when you didn''t expect it!
The error
2006 Jan 18
1
RedCloth and lang specific hooks
Hi,
I use textilize() which is a great way of letting end users edit contents.
But the code in RedCloth is quite compact, and doesn''t allow for easily
adding correct typographic behaviour depending on the lang of the text.
For instance, correct quoting uses round double quotes in english and
double carons ? ? in french; the spaces before punctuation can be
corrected too. I''d
2008 Oct 06
2
textilize with --- (3 dashes) removes text
Hi,
using --- (3 dashes) at the end of a string that is textilized,
results in a single hr tag without any text. This seems weird to me.
Am I overlooking something?
>> av = ActionView::Base.new
>> av.textilize("sometext ---")
=> "<hr />"
Cheers,
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are
2006 Apr 25
4
redcloth poblems
Hi, I''m having some problems with redcloth(3.0.4 gem) and textilize.
I have a string:
"h2. hello
_what''s up?_"
which is being textilized as:
<h2>hello<br />
<em>what’s up?</em></h2>
so no paragraph and h2 wrapped all the way.
the input is coming from firefox 1.5.2 on a mac
Anybody got any idea what the problem might be?
--
2006 Mar 25
4
the textilize method
I saw the guy in the 15 min blog video calling a method called textilize 
however when i call it rails says it cant find this method. Is this 
somehting extra i have to install to ruby... like a gem or somehting
-- 
Posted via http://www.ruby-forum.com/.
2006 Feb 27
12
RedCloth
Is this the prefered method to implement RedCloth in your views.  I''m 
trying to display user input that will sometimes have code references in 
it.   This strips out all tags.  I would like for the tags to be 
displayed but not read as html.
Thanks in advance!
<%= RedCloth.new(strip_tags(comment.comment),[:filter_html]).to_html %>
charlie bowman
recentrambles.com
-- 
Posted via
2006 Jan 17
2
Does anyone use RedCloth to allow end user input?
I was hoping to use RedCloth for textilize support to allow end users to
enter textilized text (In blog comments, for example), but these bugs seem
to make RedCloth unsuitable for that purpose:
http://rubyforge.org/tracker/index.php?func=detail&aid=2989&group_id=216&atid=891
http://rubyforge.org/tracker/index.php?func=detail&aid=1779&group_id=216&atid=891
2006 Jan 15
4
Redcloth gem properly installed ... still errors
Hi all,
installed redcloth for using the object.attrib.textilize method in a template.
Using 3.0.3 because it supoosedly works the best with rails 1.0.0.
Keep getting the undefined method error. Did the require thingy, but no luck
What would be the most I''m-a-guru place to put the require btw?
Thanx.
Gerard
-- 
"Who cares if it doesn''t do anything?  It was made with
2006 Apr 12
2
RedCloth versus BlueCloth efficiency
Has anyone profiled the performance of RedCloth versus BlueCloth?
I''m starting to realise that RedCloth is a more mature ruby project,
although Markdown the syntax maybe more widespread than Textilize.
Apart from the syntax, does anyone feel they have a preference, in terms
of performance or number of outstanding bugs?
Many thanks in advance.
CHEERS> SAM
2010 Jul 19
0
redcloth with rails3 and ruby 1.9.2
is redcloth working with rails3 and 1.9.2?
I don''t see it here - http://railsplugins.org/
redcloth 4.2.3 throws this exception when trying to use the method
textilize:
uninitialized constant ActionView::Helpers::TextHelper::RedCloth
I might need to use the 1.9.2.
can you guide me how to use the 1.9.2 version? (I assume i''ll have to
clone the repo but not sure what to do next).
2006 Feb 12
0
Setting html breaks when using textile (redcloth)
Hello,
I would like to enable html breaks when having newlines in my text  
rendered using textile/redcloth. I have found that a property names  
hard_breaks should be enabled but I''m not sure where (in which file).  
Anyone with a hint? :-)
Greetings,
Gitte Wange
2007 May 08
2
Extending SuperRedCloth
Fellows of the cloth --
I''m writing code that subclasses RedCloth and emits styled text that
is not HTML. For example, I''m going to be emitting RTF and other
formats from Textile or Markdown.
I''ve got it working quite well with plainclothed RedCloth, but I can''t
seem to override any of the methods in SuperRedCloth. Here''s a sample: