WordPress 4.7 is inserting tags into my HTML
-
Hi there – I am a relative newcomer to WordPress (but not to HTML & CSS) and this is my first post.
I am one of a number of editors on WordPress for my local organisation and I’m getting HTML syntax/nesting errors since the update to WordPress 4.7To better understand what is happening I narrowed it down to the following HTML code blocks which illustrate the problem.
If you paste the code into the EditPage text editor and publish you should find unwanted </p> tags and other problems on the “View Page Source” webpage.I am interested to see if others can confirm this as a problem.
<span> <img src="image.png" alt="thumb"> <p>Text</p> </span> <div> <img src="image.png" alt="thumb"><br> <p>The br tag vanishes</p> </div> <div><img src="image.png" alt="thumb"><div>Caption</div></div> <li> <img src="image.png" alt="thumb"><p>Text</p> </li> <li> <img src="image.png" alt="thumb"><b>Almost the same as the previous code block but with no error</b> </li> <div><img src="image.png" alt="thumb">No error here either</div> <div><a href="document.htm"><img src="image.png" alt="thumb"></a><p>Text</p></div> <a href="document.htm"><img src="image.png" alt="thumb"><p>Text</p></a>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WordPress 4.7 is inserting tags into my HTML’ is closed to new replies.