mabshoff wrote:
> 
> 
> On Feb 13, 10:10 am, Harald Schilly <[email protected]> wrote:
> 
> Hi,
> 
>> I got a bug report from the "report a problem" link in the notebook
>> about html character escaping.
>> It's inconsistent because it escapes html tags, but not &...; special
>> html characters.
>> I'm posting this to start a discussion if this is a bug or not or
>> other implicatoins...
>>
>> Example:
>>
>> In
>>
>> print "&amp; & &not;"
>> print "<b>foo</b>"
>> html("&amp; & &not;")
>> html("<b>foo</b>")
>>
>> Out
>>
>> & & ¬   <<< should be "&amp; & &not;"
>>             (but the browser interprets the html characters
>>             and it looks different)
>> <b>foo</b>
>> & & ¬
>> *foo*    <<<  in bold
> 
> Hmm, there was some recent bugfix about a similar problem for TinyMCE
> IIRC, so it does sound familiar. Have you tried 3.3.rc0 to see if the
> problem is still there?
>

Yes, this still happens on rc0.  The problem fixed before was not on 
TinyMCE per se, but on the escaping when dealing with the edit mode.

I see lots of places that only < is escaped, and not &, in notebook.py, 
cell.py, etc.  Would it be fairly safe to, whenever we escape <, escape 
& as well?

Jason


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to