The MU forums have moved to

Entities not being escaped before being put into the text editor (2 posts)

  1. JeremyVisser
    Posted 16 years ago #

    I'm not sure if this is a MU or WP problem, but I don't have a running copy of WP to test on.

    When I enter an entity into my post, specifically the left bracket [ which is & # 9 1 ; (excuse the spaces — bbPress is eating the entity). When I save the post, it's fine — the entity gets stored in the DB exactly as I typed it.

    However, when I edit the post, the entity isn't entitised, so it gets directly inserted into the textarea in the post edit screen:

    <textarea>& # 9 1;</textarea>

    (again, excuse the spaces)

    Thus, next time I save the post, it will insert a [ into the DB, not the & # 9 1 ;.

    What should be inserted into the textarea is this:

    <textarea>& a m p ; # 9 1;</textarea>

    Basically, an extra wp_specialchars() needs to be run on the content before echoing it to the textarea.

  2. JeremyVisser
    Posted 16 years ago #

    This has been resolved as of SVN r1137.

About this Topic

  • Started 16 years ago by JeremyVisser
  • Latest reply from JeremyVisser