WordPress Removing End Tags? Here’s Why

So I was writing a very large post recently, and I found that when I checked the preview that there was a huge section of the post in a blockquote.

I checked, and I found a missing </blockquote>. I figured I missed it when I originally wrote the opening tag, and instead of quoting a few lines, I found the remainder of my post quoted, which is not what I wanted.

So I added it after double-checking the quote to see where it ends and where the rest of my post starts, saved, and refreshed the preview.

It still looked wrong.

And when I checked the editor window again, I found that the </blockquote> was missing again!

What’s weird is that I was using </blockquote> successfully in a number of other areas of my post, so what’s different?

It turned out that I had copied and pasted some output from my terminal earlier in the post:

[armeabi] Compile thumb : main < = SDL_android_main.c

See that less-than sign? Apparently it was being interpreted as an opening to a tag. Maybe. I’m still not sure.

But everything worked as expected once I replaced each instance of

<

with the HTML code

&lt;

And now I can blockquote the appropriate text and not worry about having the end tag automatically removed without explanation.

And now so can you. You’re welcome.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

  

Follow GBGames on Google Plus and Facebook!


Twitter: gbgames

  • RT : Me: Your assignment is to make a game with shmup mechanics, but no bullets, no spaceships, no aliens. Results include:…
  • Just walked into a Game Stop with my 9yo. There is almost nothing PC-related here. Not even Steam controllers or anything. It's bizarre.