#39 ✓invalid
closer

:sanitize_html filter class attribute in img

Reported by closer | August 17th, 2008 @ 03:51 AM | in 4.0.4

Hello All I try to repeat extension from: http://www.ralree.info/2006/9/13... And I can't create 'img' tag with 'class' attribute if enabled :sanitize_html

Is it right behavior? Why?

Comments and changes to this ticket

  • Jason Garber

    Jason Garber August 19th, 2008 @ 07:09 AM

    • State changed from “new” to “open”
    • Milestone changed from 4.0.3 to 4.0.4
  • Jason Garber

    Jason Garber September 16th, 2008 @ 03:46 PM

    • State changed from “open” to “invalid”
    • Tag changed from sanitize_html to sanitize_html

    Yes, that is correct. Class is not an allowed attribute of img under sanitize_html. See the BASIC_HTML constant in formatters/html.rb. This is the intended purpose of sanitize_html and it has always been that way.

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