[wp-trac] [WordPress Trac] #2833: wpautop breaks style and script tags

WordPress Trac noreply at wordpress.org
Fri Apr 26 20:42:06 UTC 2019


#2833: wpautop breaks style and script tags
--------------------------------------------+-----------------------------
 Reporter:  Nazgul                          |       Owner:  (none)
     Type:  defect (bug)                    |      Status:  reopened
 Priority:  low                             |   Milestone:  Future Release
Component:  Formatting                      |     Version:  2.0.3
 Severity:  normal                          |  Resolution:
 Keywords:  wpautop has-patch dev-feedback  |     Focuses:
--------------------------------------------+-----------------------------

Comment (by azaozz):

 Replying to [comment:38 aduth]:
 > Could you share an example markup string where you'd expect the
 described issue might occur?

 Replied at
 https://github.com/WordPress/gutenberg/pull/15129#issuecomment-487174497,
 maybe better to handle this there :)

 The problem is the `<script>` tag is allowed/can be added everywhere
 `#text` is allowed, including in "inline" tags like `b`, `i`, `span`, etc.
 If marked as "block", it will "split" any tag it is contained into.

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


More information about the wp-trac mailing list