Bug 170189

Summary: Paste should replace "&" by "&"
Product: [WebTools] WTP Source Editing Reporter: Litrik De Roy <litrik_de_roy>
Component: wst.xmlAssignee: wst.xml-triaged <wst.xml-triaged>
Status: NEW --- QA Contact: Nick Sandonato <nsand.dev>
Severity: enhancement    
Priority: P3 CC: b.muskalla, itewksbu, thatnitind, wayne.beaton
Version: 1.5Keywords: bugday, helpwanted
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Litrik De Roy CLA 2007-01-11 04:56:02 EST
Currently you always need to fix URLs after pasting them from a browser into the XML editor.

When you paste a string containing an "&" (ampersand) into XML, it would be nice if the "&" would automatically be replaced by "&amp;".

Of course, this replace should not occur if the "&" is part of an entity (like "&amp;" itself, or "&#160;").
Comment 1 David Williams CLA 2007-01-11 14:10:50 EST
We'd at least want to also add a preference to control this behavior, but it's a good idea. 

Comment 2 Ian Tewksbury CLA 2010-04-05 16:31:46 EDT
Still a valid idea in WTP 3.2
Comment 3 Nitin Dahyabhai CLA 2010-04-07 20:41:02 EDT
It would require a preference, similar to JDT, so that literal pastes are still possible.