Aladdin - Scala Bugtracking
[#186] project: bugtracking priority: low category: bug
submitter assigned to status date submitted
Philippe Burak fixed 2003-10-07 10:36:22.0
subject code may contain < and > characters
code
< > &

&lt; &gt; &amp;
what happened
what expected

The code section should translate < and > characters into &lt; &gt;. Same thing for all other characters that may not be used directly in HTML code.

[back to overview]
Changes of this bug report
Matthias  edited on  2003-10-07 11:02:51.0
No, no, don't translate other HTML stuff to plain text. I want sometimes to markup my code and then I rely on tags like , , etc. in the code. I assume that people copy the source code out of the rendered HTML page, so there should be not problem. Only people submitting code have to be aware of making it HTML compliant.

So my request is to leave it as it is!

Matthias  edited on  2003-10-07 11:07:00.0
How embarrassing... Sorry I got too upset so that I totally forgot that I have to escape the tags in the last posting. Here's the corrected comment:

No, no, don't translate other HTML stuff to plain text. I want sometimes to markup my code and then I rely on tags like <b>, <i>, etc. in the code. I assume that people copy the source code out of the rendered HTML page, so there should be not problem. Only people submitting code have to be aware of making it HTML compliant.

So my request is to leave it as it is!

Burak  edited on  2003-10-07 12:56:15.0
The code section is wrapped in the <pre> tag, and most browsers seem to not be bothered by unescaped symbols.
It's true, that using &lt; &gt; &amp; would conform more to standards, but since it works fine...
Burak  edited on  2003-10-07 12:57:17.0
see the code section. the first line contains the characters itself, the second line contains entity references. This is how they are displayed within a pre tag.
Burak  edited on  2003-10-07 14:31:45.0
ok, I discussed with Matthias, who agrees that in the code section, those special characters should be replaced by their entity references. The database still contains the code as originally typed in.