3

I have some difficulties formatting some posts which body contains HTML. The code disappear or show something else in the preview, making almost impossible to format. I didn't save but if requested I will try to find.

This issue may have been experienced by other users, but most strange thing happened today when in the preview a photo (a girl) appeared in the code preview. It was plain HTML that I was trying to format (a question). How this is possible?

2
  • 2
    You mean this question?
    – Pang
    Aug 19, 2017 at 1:53
  • Wow, yes it was that one
    – Vega
    Aug 19, 2017 at 1:54

1 Answer 1

2

I have some difficulties formatting some posts which body contains HTML. The code disappear or show something else in the preview

While editing code formatting in a post, the code can temporarily be outside of a code block and the preview would then render it as is. When the code is HTML and doesn't contain a lot of visible content, as was the case with the question you were editing, it will seem as though the code disappears.

most strange thing happened today when in the preview a photo (a girl) appeared

The img tag in the question's HTML uses a placeholder image service and the collection of images it can choose from contains several that show girls. I don't know which one it is you saw at the time, but if you run this code snippet enough times, you will eventually see it again.

<img src="https://placeimg.com/400/400/bbc" alt="">

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .