#2062 closed defect (bug) (fixed)
Post formatting destroy HTML comments
Reported by: | arenoic | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.0 |
Component: | Administration | Keywords: | formatting, comment, wptexturize |
Focuses: | Cc: |
Description
When you put an HTML comment into a post-textarea the function wptexturize converts the string "-->" in "–>"
Change History (5)
#4
@
17 years ago
- Milestone set to 2.2
- Resolution set to fixed
- Status changed from new to closed
I am unable to reproduce this behavior in SVN [4984]. When I paste an HTML comment into the "Code" section of the Edit Post window (as opposed to the Visual section), it makes it through to the blog without any trouble.
Of course, the current behavior in the Visual editor is that when you type a "<", it is converted into a < entity, so it is pretty much impossible to type an HTML comment into the Visual editor section.
This is with all filtering-type plugins turned off, by the way.
So I will close this for now as fixed; feel free to reopen with more information if you think it is still broken.
Note: See
TracTickets for help on using
tickets.
A possible patch is replace de sentence
for
in the wptexturize function (line num 14)