Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
URLs automatically lower-cased when setting .Text?
posted

Hi All.

 I'm seeing a weird case where I assign a string to the WebHTMLEditor to pre-populate it.  The string has a link in it and the link is case-sensitive (yeah, I know that's hard to believe, but some servers are still running that way).

 Anyway, when I populate the .Text property on the server-side, everything looks fine.  But, once the editor loads it shows the link with a lower-case URL in it.

Here's a simple way to reproduce it:

Dim sText as String = "<a href=""http://WWW.CNN.COM"">http://WWW.CNN.COM</a>"

WebHTMLEditor1.Text = sText

When the editor finishes loading the HTML within it has been transformed to:

<a href="http://www.cnn.com">http://WWW.CNN.COM</a>

 I imagine the Javascript is messing with my content prior to display.  Is there anything I can do to stop that from happening?  I need the case to stay as-is....

 

TIA,

DW