[wp-trac] [WordPress Trac] #21221: Image title and alt attribute content should be texturized.

WordPress Trac noreply at wordpress.org
Sat Nov 15 21:32:15 UTC 2014


#21221: Image title and alt attribute content should be texturized.
--------------------------------------------+------------------------------
 Reporter:  stephdau                        |       Owner:
     Type:  enhancement                     |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  Media                           |     Version:  3.4.1
 Severity:  normal                          |  Resolution:
 Keywords:  reporter-feedback dev-feedback  |     Focuses:  accessibility
--------------------------------------------+------------------------------

Comment (by adamsilverstein):

 Replying to [comment:2 ericlewis]:
 > Why is `esc_attr()` not enough already? What's the benefit of
 `wp_texturize()`?

 these do different things entirely - esc_attr is security related,
 stripping scripts, etc. wptexturize transforms text - "quotes to smart
 quotes, apostrophes, dashes, ellipses, the trademark symbol, and the
 multiplication symbol. "

 I think  would be nice to see this improved typography in alt and title
 tags, although I'm a bit wary of potential pitfalls or unexpected results.

 @brianhogg is working on an updated patch here at #wcto. The current patch
 no longer applies cleanly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21221#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list