Editor - Shift+Return is putting unclosed <br> tag in HTML

1 Answer 150 Views
Editor
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Bob asked on 19 May 2021, 01:43 PM

Hello, I recently discovered that using the key combination of Shift+Return in the Angular editor is inserting an unclosed <br> tag into the HTML.  This is different from the JS editor where a closed <br/> tag is properly inserted.

Thanks,

Bob

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 24 May 2021, 10:57 AM

Hello Bob,

Thank you for your attention to detail and for bringing this to our attention.

While the <br /> variant is the full version and is definitely correct, to my knowledge there aren't any inherent problems related to using the <br> syntax. In the MDN docs they have used the former option too, and the most upvoted reply here also suggests the same.

That is not to say it is impossible for related problems to arise, so we remain open to feedback. If you have a specific scenario in mind where the use of <br> has caused you issues, please do let us know about it.

We would be happy to assist you in resolving any potential shortcomings when it comes to using our components.

Regards,
Georgi
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Bob
Top achievements
Rank 3
Iron
Iron
Veteran
commented on 24 May 2021, 01:29 PM

Hello Georgi, this issue was discovered because we recently started using Angular Kendo in place of JS Kendo in some situations in our products. We noticed that we were getting exceptions in our code because of the <br> tags. This is because we use the HTML from the editors within XML structures to store the data in our database. It is the parsing of the XML that causes the exceptions. We are going to look into the encoding of the HTML within the XML to avoid the parsing issue and work around the issue. I don't think it will be necessary for any changes in your code. Thanks, Bob.
Tags
Editor
Asked by
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Georgi
Telerik team
Share this question
or