• I manage/produce a WP blog site for a client. I didn’t build the site, their ad agency did. And they did a hack job. Within the past couple of days, something broke where in certain instances, quotation marks in img tags are turned into ≵

    <img src=”https://farm4.static.flickr.com/3175/2878749734_a17ace9903.jpg” alt=”Alberto and Jason” …

    The site is totally convoluted and impossible to explain without seeing firsthand, but I don’t want to air my client’s dirty laundry here. Sorry that I can’t provide more specifics. Anways, this bug only occurs in two very specific instances and just started over the weekend.

    Does anyone have a hunch about this? At least whether it’s the theme, the Flickr plugin, CSS, WP code, or something else?

    Again, I realize that I haven’t given very much info here. Thanks anyway!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter joshkadis

    (@joshkadis)

    that is odd. what i was trying to say is that the quotation marks in the img tag change to -&-#-8-2-2-1;- (imagine without the hyphens) and it got interpreted back to quotation marks when i posted to the forum.

    The problem seems to be that somebody (you?) is using so-called curly quotes in those image tags.
    This ” is not the same as this “.

    Thread Starter joshkadis

    (@joshkadis)

    thanks. i noticed that just now as well. it was fine until two days ago and no one has worked on the site.

    I’m starting to think it’s the theme, since the error occurs in an area on the homepage that displays individual posts with different formatting. Any hunches would be appreciated.

    Thanks again.

    No, that’s always a user mistake: copying from websites and/or from anomalies like MS Word… and not correcting the curly quotes before publishing.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Mmmm.. generally, yes. It’s possible that a theme is running something wrong through autop and creating that, but without a look at the code and the post content, it’s hard to say what the issue is.

    Verify that the actual post itself doesn’t have those in it first. That’s the most common way to cause this problem.

    Thread Starter joshkadis

    (@joshkadis)

    I thought of that, but there were no quotation marks of any kind in the text of the post and no formatting tags that would have been left over from Word. The only quotation marks were inside tags that were created within WP. It was an employee of my client that wrote the post, and he would definitely not have been typing source code in Word then pasting it back into WP. Plus, the same code worked fine when the same post was displayed somewhere else on the site.

    Still, re-pasting plain text into WP worked even though not a single character in the WP HTML editor appeared to change.

    In any event, this particular instance is fixed although the causes aren’t entirely clear. It definitely seemed to me like there was more going on than simply pasting styled text into WP.

    Anyways, thank you for the advice!!

    Thread Starter joshkadis

    (@joshkadis)

    FWIW, the guy who wrote the initial post that we thought might have contained curly quotes reports that he wrote it in the WP visual editor. Odd.

    Do you mean he added something like this
    <img src="https://example.com/image.jpg" .... />
    into the Visual editor?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Did he manually type out an IMG tag in the visual editor? You can’t do that. HTML you have to enter into the HTML editor. If he wants to insert an image, there’s an Add Media thing to do just that.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘” changes to ≵ in img tags’ is closed to new replies.