It is possible to get value without html tags ?

Hello, I'm using Rich Text Editor and I want to save rich text and text without anything.


For exmaple: 


The rich text editor return <p>Example</p> but I need also Example


Thanks


1 Reply 1 reply marked as answer

BS Buvana Sathasivam Syncfusion Team June 28, 2022 12:41 PM UTC

Hi Cristian,


Greetings from Syncfusion support.


You will get the Rich Text Editor plain text using the GetTextAsync public method. In the below sample, we have got the Rich Text Editor content when we click the external buttons.

Index.razor

private async void GetText()

    {

       RTEText= await this.RTEObj.GetTextAsync();

    }


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/NE9FDB~1-856736324


API link: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.RichTextEditor.SfRichTextEditor.html#Syncfusion_Blazor_RichTextEditor_SfRichTextEditor_GetTextAsync


Documentation: https://blazor.syncfusion.com/documentation/rich-text-editor/getting-started#retrieve-the-formatted-content


Regards,

Buvana S


Marked as answer
Loader.
Up arrow icon