Unplanned
Last Updated: 31 Oct 2018 07:51 by ADMIN
ADMIN
Mihail
Created on: 11 May 2015 10:10
Category: RichTextBox
Type: Feature Request
7
RichTextBox: Skip invalid or empty attribute values on HTML import
Currently invalid attribute values, including invalid or empty values in CSS attributes in the 'style' attribute, could cause importing property with incorrect value, or NullReferenceException (the document cannot be imported).
Examples:
----------------------------------------------------------
<table width=”*”>
	<tr>
		<td>More Random Text</td>
	</tr>
</table>

The table is imported with 0 width. Instead the width should not be set.
----------------------------------------------------------
<table style="font-size:;">
	<tr>
		<td>More Random Text</td>
	</tr>
</table>

NullReferenceException is thrown.
----------------------------------------------------------

Workaround: replace the invalid values before import:
string importString = html.Replace("font-style: ;", "");
3 comments
ADMIN
Tanya
Posted on: 15 Sep 2017 08:03
Hi Vennila,

As we discussed in the support ticket, the item is not scheduled and, at this point, I cannot give a specific time frame when an implementation might be available.

Regards, 
Tanya
Vennila
Posted on: 14 Sep 2017 14:51
When do we expect a fix for this?
Glen
Posted on: 12 May 2015 16:50
When using the RadRichTextBox to display html emails, the html source (various email applications) may not produce perfect html.  This causes the control to encounter a parsing error and ultimately not to display any content.  It would be great to have a configuration to be set that the control would do a best effort attempt at displaying the provided html even if badly formed.