Forums

[Plugin: wp-typogrify] Character Replacement (2 posts)

  1. slushpilejs
    Member
    Posted 8 months ago #

    Pattern matching on ampersands and other characters doesn't check for the context of where they appear. For instance, an ampersand in a title attribute of an anchor tag inserts <span class="amp"> which gives you a lot of double quotes and breaks the HTML. Really, the regex should check and make sure it's not doing a replacement inside HTML, or at least in certain contexts.

  2. kingjeffrey
    Member
    Posted 4 months ago #

    wp-Typogrify has been officially replaced with wp-Typography, which offers precisely the contextual awareness you sought.

Reply

You must log in to post.

About this Topic