#2060 closed defect (bug) (duplicate)
Text gets texturized in <pre>, <code> if the block contains a tag
Reported by: | allan | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
If a <code>, <pre>, etc. block contain a tag, then text after that tag gets the usual treatment (smart quotes etc.).
E.g. this text: <pre>"foo"<br>"bar"</pre>
Becomes (after the wptexturize filter): <pre>"foo"<br>“bar”</pre>
Attachments (1)
Change History (4)
#1
@
19 years ago
- Summary changed from Text gets mangled in <code> etc. if the block contain a tag to Text gets texturized in <pre>, <code> if the block contains a tag
- Version changed from 1.5.2 to 2.0.1
Confirming this is still an issue in v2.0.1
Another test case:
<pre>"test"<strong>"test"</strong>"test"</pre>
is transformed into:
<pre>"test"<strong>“test”</strong>“test”</pre>
Note: See
TracTickets for help on using
tickets.
Patch to fix the problem