Menu

#1 '<pre>' tag with < changes to '<' in edit mode

open
nobody
None
5
2004-02-19
2004-02-19
No

If a <pre> block contains a '&lt;' to indicate a less than
sign (for example an XML snippet) it will show up as '<' in
the log entry. But when I edit this entry the page will
still show '<' and if I do not change this part the <pre>
block will not show up afterwards. This means I have to
go and change all '<' back to '&lt;'.
I think it must be possible to open the 'edit' page and
save the entry without changes and still the same entry
should be displayed.

-Andy

Discussion

  • Andreas Schaefer

    • summary:
       tag with < changes to '<' in edit mode --> &lt;pre&lt; tag with &lt; changes to '<' in edit mode
     
  • Andreas Schaefer

    • summary: &lt;pre&lt; tag with &lt; changes to '<' in edit mode --> '<pre>' tag with &lt; changes to '<' in edit mode
     
  • Andreas Schaefer

    Logged In: YES
    user_id=70434

    I attached a simple patch for this problem. It actually
    changes all '&' in a text to the HTML sign '&amp;' so that you
    actually see '&lt;' instead of '<'. I tested it in IE 6.0 and it
    seems to work. Because I am not an HTML geek I cannot say
    if it works all the time.

     
  • Andreas Schaefer

    CVS patch

     

Log in to post a comment.