
<code> tag is escaped when it has the class attribute and is in a <pre> tag
Reported by Chris Roos | December 17th, 2008 @ 01:00 PM | in 4.1.9
This is expected behaviour.
>> RedCloth.new(%%<pre><code>some <b>bold</b> text</code></pre>%).to_html
=> "<pre><code>some <b>bold</b> text</code></pre>"
This is unexpected (note that the opening tag has now been
escaped, while the closing has not).
>> RedCloth.new(%%<pre><code class="ruby">some <b>bold</b> text</code></pre>%).to_html
=> "<pre><code class=\"ruby\">some <b>bold</b> text</code></pre>"
Comments and changes to this ticket
-
Jason Garber February 11th, 2009 @ 02:28 PM
- Tag set to html
- State changed from new to open
- Title changed from Invalid HTML generated when <code> with class attribute is nested in <pre> tag to <code> tag is escaped when it has the class attribute and is in a <pre> tag
-
Jason Garber February 11th, 2009 @ 02:29 PM
- State changed from open to resolved
(from [6b6b09133b34f3478d15256d164deea30db53e99]) Fix escaped
tag when it has the class attribute and is in a
tag. [#95 state:resolved] http://github.com/jgarber/redclo...
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
People watching this ticket
Tags
Referenced by
-
95 <code> tag is escaped when it has the class attribute and is in a <pre> tag tag. [#95 state:resolved] http://github.com/jgarber/redc...