[wp-trac] [WordPress Trac] #41596: New Text Widget recognizes HTML but does not render it in the front end

WordPress Trac noreply at wordpress.org
Thu Aug 10 17:08:48 UTC 2017


#41596: New Text Widget recognizes HTML but does not render it in the front end
-------------------------------------------------+-------------------------
 Reporter:  mrfoxtalbot                          |       Owner:  azaozz
     Type:  defect (bug)                         |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.8.2
Component:  Widgets                              |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:  ui
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by westonruter):

 * keywords:  has-patch => has-patch needs-testing has-unit-tests
 * owner:   => azaozz
 * status:  new => reviewing


Comment:

 @azaozz thanks for that. I wasn't aware of `format_for_editor()`. The best
 option to get around the double-encoding issue seems then to get away from
 using a `input[type=hidden]` and instead utilize a `textarea[hidden]`.
 Please review [attachment:41596.1.diff].

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


More information about the wp-trac mailing list