
Inner tag getting escaped
Reported by Geoff Drake | December 18th, 2010 @ 09:08 AM
I am using RedCloth from within Webgen and I have created a Webgen plugin to wrap images. It outputs the following line:
<a href='#{image_original}' id='gallery' class='lightbox' #{titlestr}><img src='#{image_small}' class='#{cls}' #{titlestr} #{altstr} onLoad ='$(\"a.lightbox\").lightBox();'/></a>
Using 4.1.9 this renders as correct HTML.
Using 4.2.0 it renders the <a> tag correctly, but then escapes the img tag with < > etc. Is there any change I can make to the generation string to make it work, or is this a bug?
Comments and changes to this ticket
-
Jason Garber February 1st, 2011 @ 10:25 AM
- State changed from new to open
- Tag changed from l not rendering, htm, img to code, escaping, html
I think it's a bug. Lots of HTML/code/escaping problems that I can't seem to solve with the current parser. Needs a rewrite in something better.
-
Jason Garber February 1st, 2011 @ 10:31 AM
- Title changed from Regression Bug 4.1.9 -> 4.2.0 to Inner tag getting escaped
Can you provide the exact string that's going into RedCloth.new? I should be able to duplicate it using the redcloth CLI, but when I put in the string you provided, I get a different result than you described:
$ redcloth <a href='#{image_original}' id='gallery' class='lightbox' #{titlestr}><img src='#{image_small}' class='#{cls}' #{titlestr} #{altstr} onLoad ='$(\"a.lightbox\").lightBox();'/></a> # Press Ctrl+D <p><a href=‘#{image_original}’ id=‘gallery’ class=‘lightbox’ #{titlestr}><img src=‘#{image_small}’ class=‘#{cls}’ #{titlestr} #{altstr} onLoad =‘$(\“a.lightbox\”).lightBox();’/></a></p>
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RedCloth is a Ruby library for converting Textile into HTML