[wp-trac] [WordPress Trac] #26307: Link tool in basic editor should escape quotes

WordPress Trac noreply at wordpress.org
Thu Nov 28 18:10:40 UTC 2013


#26307: Link tool in basic editor should escape quotes
--------------------------+-----------------------------
 Reporter:  krinklemail   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  3.7.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When inserting links, I quite often use quotes inside the link tooltip
 (e.g. a tooltip like: ''Lookup "foo" on Wiktionary''. Or ''Read more about
 "Foo" on Wikipedia''.

 However these always end up being inserted in the editor unescaped.


 {{{
 Example text
  <a href="https://en.wiktionary.org/wiki/whilst" title="Lookup "whilst" on
 Wiktionary" target="_blank">whilst</a>
 referring to
  <a href="https://en.wikipedia.org/wiki/Elementary_(TV_series)"
 title="Read about "Elementary (TV series)" on Wikipedia"
 target="_blank">Elementary</a>
 on Wikipedia.
 }}}


 The attribute values for "title" and "href" (like any attribute value,
 really) need escaping (especially tooltip, which is more likely contain a
 quote, though the URL should naturally have html special characters
 escaped as well).

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26307>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list