PITS /
00821: HTML entities don't work in preformatted blocks
Summary: HTML entities don't work in preformatted blocks
Created: 2006-10-23 21:58
Status: Open
Category: Bug
Assigned:
Priority: 3
Version: 2.2.0-beta15
OS: FreeBSD / Apache2 / PHP5.0.4
Description:
In the example below, the special characters converted to HTML entities don't work in the preformatted block:
Special characters in a normal paragraph: \\ → ← ↑ ↓ \\ ↔ ↕ α β \\ δ µ ℓ ☺ \\ ☆ º ¹ ² \\ ³ ½ ¼ ½ \\ ¾ ⅓ ⅔ ♂ \\ ♀ © ® \\ ∆ ≈ ≠ \\ ≤ ≥ ± ÷ \\ × « » |
Special characters in a normal paragraph: |
[@ Special characters in a block of preformatted text: → ← ↑ ↓ ↔ ↕ α β δ µ ℓ ☺ ☆ º ¹ ² ³ ½ ¼ ½ ¾ ⅓ ⅔ ♂ ♀ © ® ∆ ≈ ≠ ≤ ≥ ± ÷ × « » @] |
Special characters in a block of preformatted text: → ← ↑ ↓ ↔ ↕ α β δ µ ℓ ☺ ☆ º ¹ ² ³ ½ ¼ ½ ¾ ⅓ ⅔ ♂ ♀ © ® ∆ ≈ ≠ ≤ ≥ ± ÷ × « » |
This is correct -- the [@...@] markup tells PmWiki to preserve all characters in the block "as is". This includes HTML character entities.
To get a preformatted block that contains markup such as character entities, use leading spaces or a >>...<<
division that converts to monospace/preformatted text.