Ticket #3603 (closed defect (bug): duplicate)
end-of-comment markers converted to em-dash
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Formatting | Version: | 2.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Enter the following in a new post:
string1 <!-- string2 <ol/> --> string3
You will get the output:
<p>string1 <!-- string2</p> <ol/> –> string3</p>
I don't know if other block-level elements suffer this same fate, but this is not even well-formed output!
Attachments
Change History
comment:1
nickshanks — 5 years ago
comment:2
nickshanks — 5 years ago
trac is broken. i give up :P
comment:3
foolswisdom — 5 years ago
- Milestone changed from 2.2 to 2.1
Confirmed bug
ENV: 2.1-beta r44759
Seems to gooble the -- whenever there is an html tag in the comment.
Setting milestone as 2.1 as it seems better to disable em-dashing then have this behavior.
- Keywords needs-patch added; has-patch removed
Did some more testing. Although my patch fixes the problem it introduces others, so please ignore it.
Also closed #5073 as a duplicate of this bug.
- Owner anonymous deleted
- Component changed from General to Formatting
comment:10
hakre — 2 years ago
It is not possible to fix those things in wordpress. I suggest closing this as wontfix.
If you do not think so, please provide a patch that is actually fixing the issue and not breaking anything else.
comment:12
solarissmoke — 11 months ago
- Keywords needs-patch removed
- Status changed from new to closed
- Resolution set to duplicate
#8912 - that one seems more active


Enter the following in a new post:
{{{string1 <!-- string2 <ol/> --> string3}}}
You will get the output:
{{{<p>string1 <!-- string2</p> <ol/> –> string3</p>}}}
I don't know if other block-level elements suffer this same fate, but this is not even well-formed output! }}}