This is a migrated thread and some comments may be shown as answers.

HTML handling

2 Answers 570 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Hedinn
Top achievements
Rank 1
Hedinn asked on 15 Aug 2020, 02:03 PM

Hello,

Two quick questions:

1) Is it possible to use the control just for rendering HTML?

Assuming that I want to use the control to enter and edit HTML and later just render it on a web page.

Or should I just use the Blazor MarkupString for that?

 

2) Does the control provide some support for sanitising the HTML entered? Or do I need to analyse it to look for malware?

regards

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 16 Aug 2020, 06:10 AM

Hello Hedinn,

The editor is designed to provide WYSIWYG (what you see is what you get) experience for the end user to create HTML visually, without having to know how to write HTML. It is not a rendering helper for you to use that HTML and I'd advise that you use standard framework approaches to render raw HTML instead of the editor - the MarkupString being the chief one for Blazor.

For sanitizing HTML - this is up to the app as denoted in the docs. There are various existing tools and utilities that can help with such tasks.

Regards,
Marin Bratanov
Progress Telerik

0
Hedinn
Top achievements
Rank 1
answered on 17 Aug 2020, 12:32 PM

Thank you for the prompt reply, sorry, I missed the sanitation paragraph in docs :)
Otherwise looking forward to put the editor through its paces.

regards

Tags
Editor
Asked by
Hedinn
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Hedinn
Top achievements
Rank 1
Share this question
or