[wp-trac] [WordPress Trac] #18311: Support HTML in image captions.

WordPress Trac wp-trac at lists.automattic.com
Mon Jan 23 00:24:06 UTC 2012


#18311: Support HTML in image captions.
--------------------------------------------------+-----------------------
 Reporter:  prettyboymp                           |       Owner:  sushkov
     Type:  task (blessed)                        |      Status:  assigned
 Priority:  normal                                |   Milestone:  3.4
Component:  General                               |     Version:
 Severity:  normal                                |  Resolution:
 Keywords:  needs-patch ux-feedback dev-feedback  |
--------------------------------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:23 sushkov]:
 > I'm playing around with some escaping options...

 Yes, JSON seems a good encoding solution for that. Was thinking we could
 try escapting only, i.e. escape the single and double quotes `\'`, `\"`
 and then unescape them after the shortcode is processed.

 > The biggest problem though, is that we will need to filter what tags are
 supported in the caption, where I would stick to basic
 `span,a,em,strong,del,[insert markup tags here]`...

 When the visual editor is used it will allow only inline tags there (or
 the caption format breaks). When adding tags directly, it will be the UI
 that determines how we handle that. For now I imagine we would only
 support adding links directly (outside the visual editor) and of course
 entering HTML by hand. In the second case we should expect the users to
 "know what they are doing", same as when using the HTML editor.

 > Need some dev feedback.

 You are one of the devs for this enhancement. That includes researching,
 testing and deciding what would be best there (you have the power!) :)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18311#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list