tylerlong / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Left angle brackets and ampersands cause problems. #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Formatting any the following code block:
str = '<a href=#>top</a>'
if b<a or c>d:
    str.replace("&","&amp;").replace("<", "&lt;")

What is the expected output? What do you see instead?
Expected: To see the code as it was input.
Instead:
str = 'top'
if bd:
    str.replace("&","&").replace("<", "<")

What version of the product are you using? On what operating system?
Trunk, linux / firefox 2

Please provide any additional information below.

Original issue reported on code.google.com by stone...@gmail.com on 1 Apr 2007 at 7:43

GoogleCodeExporter commented 9 years ago
What is the actual html you used?

Is this inside a <pre> tag, an <xmp> or <listing> tag?

Original comment by mikesamuel@gmail.com on 2 Apr 2007 at 6:51

GoogleCodeExporter commented 9 years ago
Closing for lack of a testcase.

Original comment by mikesamuel@gmail.com on 8 May 2007 at 6:08