Sensible to Escape "&" In Pasted URLs?

I'm creating DITA docs that happen to include hrefs to URLs with query parameters, which means the pasted URLs have unescaped "&" characters. I'm wondering if it would be possible or sensible for Oxygen to automatically escape "&" when pasting into an attribute text field in the attribute editor? Cheers, E. ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>

Hello, What makes the difference in the pasted text between an "&" included in a URL that should be escaped and an "&" that starts an entity reference and that should not be escaped? We do not have a clear answer yet but we will consider this for a future version. Regards, Sorin Eliot Kimber wrote:
I'm creating DITA docs that happen to include hrefs to URLs with query parameters, which means the pasted URLs have unescaped "&" characters.
I'm wondering if it would be possible or sensible for Oxygen to automatically escape "&" when pasting into an attribute text field in the attribute editor?
Cheers,
E.

On 5/21/09 10:11 AM, "Sorin Ristache" <sorin@oxygenxml.com> wrote:
Hello,
What makes the difference in the pasted text between an "&" included in a URL that should be escaped and an "&" that starts an entity reference and that should not be escaped? We do not have a clear answer yet but we will consider this for a future version.
My naïve answer would be that if the "&" introduces a syntactically-valid entity reference or numeric character reference, it should be used as is, but if not, it should be escaped. In particular, I don' think ";" could occur unescaped in a valid URI so it should be reliable as an indicator of an entity or numeric character reference. My use case was copying URLs from a browser and pasting into the attribute value field. Cheers, E. ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
participants (2)
-
Eliot Kimber
-
Sorin Ristache