[wp-trac] [WordPress Trac] #42224: Custom HTML widget is flagging errors on non-HTML

WordPress Trac noreply at wordpress.org
Sun Oct 15 01:07:14 UTC 2017


#42224: Custom HTML widget is flagging errors on non-HTML
--------------------------+------------------------------
 Reporter:  joyously      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------
Changes (by westonruter):

 * keywords:   => close


Comment:

 @joyously try putting the same code into the post editor. You should see
 the same problem as the Text widget. In the case of the Custom HTML
 widget, the ASCII art you are trying trying to render contains characters
 that need to be escaped so that the browser doesn't try to interpret them
 as text. The `pre` tag means it retains whitespace. It doesn't mean that
 doesn't try to parse HTML. So the Custom HTML widget is doing the right
 thing in preventing you from saving.

 Try replacing each `<` with `<` and each `>` with `>`. It should
 then render and save properly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42224#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list