Opened 16 years ago
Closed 15 years ago
#798 closed Defect (fixed)
BBCode inside PRE tags is being parsed
Reported by: | jbk | Owned by: | davea |
---|---|---|---|
Priority: | Trivial | Milestone: | Undetermined |
Component: | Web - Forums | Version: | 6.2.19 |
Keywords: | bbcode | Cc: |
Description
Fixed the same issue for CODE tags but didn't fix it for PRE tags.
The reason is that CODE blocks use divs with stylesheets allowing us to use escaping of [ to break out of the BBCode parsing recursion. Pre tags are implemented directly as HTML pre tags and hence do not allow escaping (the escape code would show up instead of the actual char).
The solution is of course to make PRE blocks do the same thing as CODE blocks do now: 1) Add a style for pre divs and convince all projects to update their CSS 2) Make 'pre's do what 'code's do now in text_transform.php - with the exception that they use the 'pre' CSS class instead of 'code'
Change History (4)
comment:1 Changed 16 years ago by
comment:2 Changed 15 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I don't understand the problem
comment:3 Changed 15 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
[pre]hello [b]world[/b][/pre]
shows bold instead of a literal [b]
.
comment:4 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
What kind of escaping are you talking about? <pre>&</pre> works just fine; escape codes are replaced by the parser, without caring what tag they are in.