[wp-trac] [WordPress Trac] #44359: html tag in post

WordPress Trac noreply at wordpress.org
Fri Jun 15 17:45:25 UTC 2018


#44359: html tag in post
-------------------------------+----------------------
 Reporter:  albedo0            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:  invalid
 Keywords:                     |     Focuses:
-------------------------------+----------------------
Changes (by desrosj):

 * keywords:  reporter-feedback =>
 * status:  new => closed
 * version:  4.9.6 =>
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @albedo0,

 Thanks for the ticket, and welcome to Trac!

 The `<html>`, `<head>`, and `<body>` tags are not allowed in the editor
 and are purposefully stripped from post content. If you are looking to
 include code examples in your posts, you should look into wrapping the
 markup in `<code>` or `<pre>` tags. Pasting code examples into these tags
 using the visual editor will automatically escape the markup into
 `<html>`.

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


More information about the wp-trac mailing list