Summary:
I'm using the HtmlEditorExtender in a listview. EnableSanitization is false (this is for an internal admin page). When I add/update a row, some links in the html is removed. And the text for the link ends up prefixed with an underscore.
More details:
Add some text such as "Please click here." Highlight the word "here" then create a link. For the url, use something that contains the letters "url" such as www.curl.com.
In the codebehind, wireup a ListView1_ItemUpdating event handler with code like this
String myString = e.NewValues["MyHtml"].ToString();
Look at myString. The link (anchor tag) is removed. and the word "here" becomes "_here".
I'm using the HtmlEditorExtender in a listview. EnableSanitization is false (this is for an internal admin page). When I add/update a row, some links in the html is removed. And the text for the link ends up prefixed with an underscore.
More details:
Add some text such as "Please click here." Highlight the word "here" then create a link. For the url, use something that contains the letters "url" such as www.curl.com.
In the codebehind, wireup a ListView1_ItemUpdating event handler with code like this
String myString = e.NewValues["MyHtml"].ToString();
Look at myString. The link (anchor tag) is removed. and the word "here" becomes "_here".