montreyw / Theme-Redesign-and-SEO-Overhaul

Earmilk redesign project
2 stars 0 forks source link

Method to Auto-Remove """ from "src=""https://" in posts #12

Open andrebu opened 8 years ago

andrebu commented 8 years ago

Writers aren't coders and understandably sometimes make mistakes that albeit being small, can wreck the writer's own content contribution and posting efforts. We still love them!

One such minor, common mistake that can break a whole page is when a content writer accidentally copies a URL to embed with the quotation marks still around it. Doing so, in WP at least, causes this output:

<iframe src="&quot;https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/244099936&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;visual=true" width="100%" height="450" frameborder="no" scrolling="no"></iframe>

A permanent, automatic fix is needed, to prevent posts ability to break the whole page, or even better, to prevent accidental copying of quotation marks from messing up the embed and post.

Barring the above solution that prevents breaking of SoundCloud embeds, at least a bumper at the end of posts to prevent code breaking the whole page would be nice.

andrebu commented 8 years ago

Using Better Search and Replace plugin on the clone replaced 8 of these entries.