Serious flaw with HTML and syntax highlighter.
-
In WP 3.7.1, there is a serious flaw. The shortcode does not support HTML very well.
For example, if we type the following in to Visual editor:
[code language="html"] <input type="checkbox" id="cbox1" /> <label for="cbox1">Option 1</label> <input type="checkbox" id="cbox2" /> <label for="cbox2">Option 2</label> <!-- ...and so on --> [/code]
[Moderator Note: Please post code & markup between backticks or use the code button – not the blockwquote button. Your posted code may now have been permanently damaged by the forum’s parser.]
The output is such:
& lt ;blockquote>& lt ;input type=”checkbox” id=”cbox1″ /& gt ;
& lt ; label for=”cbox1″ & gt ; Option 1 & lt ; /label & gt;
& lt ;input type=”checkbox” id=”cbox2″ /& gt ;
& lt ;label for=”cbox2″& gt ;Option 2& lt ;/label& gt ;
<!– …and so on –>It appears that the plugin is printing the escape sequences for the HTML characters.
- The topic ‘Serious flaw with HTML and syntax highlighter.’ is closed to new replies.