[wp-trac] [WordPress Trac] #33466: wpautop breaks multi-line textarea content
WordPress Trac
noreply at wordpress.org
Tue Aug 25 00:19:22 UTC 2015
#33466: wpautop breaks multi-line textarea content
--------------------------+------------------------
Reporter: takayukister | Owner: chriscct7
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Formatting | Version:
Severity: normal | Resolution:
Keywords: wpautop | Focuses:
--------------------------+------------------------
Comment (by azaozz):
The four tags that need "special treatment" are `pre`, `scritp`, `style`
and `textarea`. We want to generally preserve line breaks/white space in
them and prevent any extra tags like `<br>`. This needs to happen in both
wpautop -- JS and PHP.
In addition:
- For `<pre>` we need to keep consecutive white spaces.
- For `<textarea>` we may have to make sure `</textarea>` is escaped to
`</textarea>` (needs testing).
The above patches are a good start but thinking we can handle these four
tags in the same way as suggested in [#comment:5 comment 5]. This needs to
be in both JS and PHP.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33466#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list