Ticket #50 (assigned defect)
"<>" in code span encoded twice when filter_html is on
| Reported by: | ueno | Owned by: | deveiant |
|---|---|---|---|
| Priority: | normal | Milestone: | Bugfixes |
| Component: | API | Version: | |
| Severity: | normal | Keywords: | filter_html escape code |
| Cc: |
Description
I have tried code spans with filter_html enabled and found that "<>" are double-escaped.
b = BlueCloth.new('< > &') b.filter_html = true b.to_html #=> "<p><code>&lt;</code> <code>&gt;</code> <code>&</code></p>"
Is this an intentional behavior? I suspect not so and I think it could be fixed by the attached patch.
Regards,
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
