﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
6414,Inserting an image with an apostrophe in the title or caption results in \' in the HTML,johnconners,andy,"If you insert an image into a post and have an apostrophe in the title or caption, such as:

{{{
Title: It's a title
Caption: It's a caption
}}}

Then the underlying HTML that ends up in the post will have the link's title attribute like so:

{{{
title=""It\'s a title""
}}}

and the image's alt attribute as:

{{{
alt=""It\'s a caption""
}}}

Note the addition of the backslash in both cases. This is as a result of the ''media_send_to_editor'' function (in wp-admin/includes/media.php) calling ''addslashes'' when it sends the HTML to the editor. I'm sure that ''addslashes'' is there for good reason so I suspect the fix might be somewhat trickier than simply removing the call.",defect (bug),closed,normal,,Administration,3.0.1,normal,invalid,,codecowboy
