#263 new
Sergey

Wrong output with unquoted params

Reported by Sergey | May 15th, 2013 @ 08:07 AM

RedCloth.new("<DIV height='123' weight='123'>Hello!</DIV>").to_html
<DIV height='123' weight='123'>Hello!</DIV>
It seems to be ok.

RedCloth.new("<DIV height=123 weight='123'>Hello!</DIV>").to_html
<p>&lt;<span class="caps">DIV</span> height=123 weight=&#8217;123&#8217;&gt;Hello!</DIV></p>
When first tag attribute is unquoted, RedCloth couldn't determine that source is html.

RedCloth.new("<DIV height='123' weight=123>Hello!</DIV>").to_html
<DIV height='123' weight=123>Hello!</DIV>
When second tag attribute is unquoted, it seems to be ok.

RedCloth.new("<DIV height=123 weight=123>Hello!</DIV>").to_html
<p>&lt;<span class="caps">DIV</span> height=123 weight=123&gt;Hello!</DIV></p>
When first and second tag attribute is unquoted, RedCloth couldn't determine that source is html.

Could you fix this? Could RedCloth ignoring unquoted params (by parametr?) and consider source as valid html?

No comments found

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.

New-ticket Create new ticket

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

Shared Ticket Bins

People watching this ticket

Pages