editor - Is It Possible to Comment Out HTML Code in a Wordpress Post? -


Sometimes I need to put some raw HTML code into a WordPress post, and sometimes I can see that code A part of the need to comment !!

With a plain text editor, I just click and I can hide around Chuck.

But when I see it in a WP post, it hides the code, but I still see the "off comment tag" -> look.

What is the correct way, if possible, to exclude the code in a WP post?

Thank you!

There is a bug in Wpautop () that breaks the HTML code comments. An easy solution is to add a second open HTML comment tag before the optional closing - it works like WordPress you would expect it to

   & Lt; / A & gt; & Lt; / Div & gt; & Lt ;! - - & gt;  

This will not work in WordPress:

  & lt ;! - & lt; Div class = "book floatleft" & gt; & Lt; A href = "#" & gt; & Lt; Img src = "http://www.myreallycoolsite.com/wp-content/uploads/2013/02/button.png" alt = "" /> & Lt; / A & gt; & Lt; / Div & gt; - & gt;  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -