We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Some HTML won't display - can't work out why though

The following sample HTML won't display on the Rich Text Editor - it's come from the MVC RichTextEditor and displays fine there. 
It passes HTM5 validators ok without issue.
Anyone any thoughts?
<p><strong><span>INVENTORY / SCHEDULE OF CONDITION</span></strong></p>
<p><strong>MORETON STREET</strong></p>
<span>The following inventory</span>

4 Replies

DS Devaraj Sekar Syncfusion Team January 9, 2020 05:58 AM

Hi Nick, 
Thank you for contacting Syncfusion support. 
The mentioned behavior “sample HTML not displaying on the Rich Text Editor” works as expected from our side. We have prepared a sample based on the provided details, which can be downloaded from the below link. 
Sample screenshot: 
Kindly provide us more details about issue or please modify the provided sample to replicate the issue facing from your side which will be helpful for us to provide an appropriate solution at earliest. 
Devaraj S 

NI Nick January 9, 2020 03:47 PM

Thanks. The example works - and I can see the difference is there is no carriage returns in the HTML. If these are placed back in, the rich text editor does not show any content. It seems quite random what works and what doesn't though as plenty of content works OK with carriage returns.

Modified example below:

namespace RTETextValue
    // Learn more about making custom code visible in the Xamarin.Forms previewer
    // by visiting https://aka.ms/xamarinforms-previewer
    public partial class MainPage : ContentPage
        public MainPage()
            rte.Text = "<p><strong><span>PROPERTIES</span></strong></p>\r\r<p><strong><span> INVENTORY / SCHEDULE OF CONDITION</span></strong></p>\r\r<p><strong> PROPERTY - ADDRESS:</strong></p>\r\r<p><strong> MORETON STREET </strong></p>\r<p><strong> Declaration </strong></p>\r\r<span> The following inventory</span> ";

            //rte.Text = "<b>hello</b>"; //THIS WORKS OK

DS Devaraj Sekar Syncfusion Team January 10, 2020 06:17 AM

Hi Nick, 
Thank you for the update. 
We were able to reproduce the issue with “RTE gets blank while setting the value with \r(carriage return)” and suspect this to be a defect. We will update you with further details on 14th January 2020. 
Devaraj Sekar 

DS Devaraj Sekar Syncfusion Team January 14, 2020 09:03 AM

Hi Nick, 
Thank you for the patience. 
We confirmed that the issue with “RTE gets blank while setting the value with \r(carriage return)” is a defect and we have logged a defect report. The fix for this issue will be included in our last weekly NuGet release of January 2020, which is estimated to be available on 28th January 2020 tentatively. 
Devaraj S 

Live Chat Icon For mobile
Up arrow icon