Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#21084 closed feature request (maybelater)

attr values in wp_kses

Reported by: wraithkenny's profile WraithKenny Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Validation Keywords:
Focuses: Cc:

Description

It'd be great to be able to sanitize or whitelist values for attributes on certain elements in the kses functions. Perhaps a filter in wp_kses_attr(), or alternatively by passing a callback to the attribute array instead of 'true' or 'array()'.

Change History (4)

#1 @WraithKenny
13 years ago

  • Keywords dev-feedback added

the filter would probably be a one liner, but the handling of a callback, a little more difficult...

#2 @WraithKenny
13 years ago

  • Resolution set to maybelater
  • Status changed from new to closed

Sorry, just remembered that feature requests go to idea at wordpress.org

http://wordpress.org/extend/ideas/topic/filtering-values-of-attributes-for-html-elements-passed-to-wp_kses

#3 @helenyhou
12 years ago

  • Keywords dev-feedback removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.