Forums

How Does the Editor Escape Captions? (4 posts)

  1. miqrogroove
    Member
    Posted 11 months ago #

    I'm working on a patch for #8763 but for the life of me I can't figure out what is causing "&" to change to "&" when I insert image captions into a new post.

    Is anyone able to point me to that part of the code?

  2. miqrogroove
    Member
    Posted 11 months ago #

    Oh great, now the forum can't even display my question properly >:{

    & changes to & when inserting captions and looking at the html

  3. iridiax
    Member
    Posted 11 months ago #

    & is the correct form for xhtml (what WordPress uses):

    http://codex.wordpress.org/HTML_to_XHTML#Entity_references

  4. miqrogroove
    Member
    Posted 11 months ago #

    wp_specialchars() does not use & which is the entire point of my question. If you would take the time to read it before replying...

Reply

You must log in to post.

About this Topic