Opened 21 months ago
Closed 6 months ago
#910 closed defect (fixed)
Issue when writing code by using the <code> block
| Reported by: | isaackeyet | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | Future Release |
| Component: | Compose | Version: | |
| Keywords: | Cc: |
Description
Looks like these are not being translated to proper UTF characters (?), and instead are just being cut when the post is sent.
Requires some investigating to see if this is going to be a concern.. Code tag could be almost useless with this flaw.
Change History (4)
comment:1 Changed 21 months ago by daniloercoli
comment:2 Changed 21 months ago by daniloercoli
- Summary changed from PHP code (and more?) is cut from <code> blocks to Issue when writing code by using the <code> block
comment:3 Changed 21 months ago by daniloercoli
comment:4 Changed 6 months ago by koke
- Resolution set to fixed
- Status changed from new to closed
The HTML entities problem was fixed long ago
Note: See
TracTickets for help on using
tickets.

be able to reproduce this issue.
Tags that should appear on the screen should be re-written by using entities for opening and closing brackets.
For eg:
like the visual editor does when you paste content with tags.
btw, the HTML editor of WordPress is suffering the same issue.
I guess there isn't a simple workaround for this issue, since we can't rewrite tags easily. How we can detect when a tag should be rewritten?edit: I think we can rewrite every left/right arrows in a "code" block by using entities when uploading the post to the server.