In my ASP.NET web forms project, I am utilizing Telerik controls.
The Problem
In one instance, I need to retrieve HTML data from the database, which includes a lot of CSS, images, and HTML content.
Here is an excerpt of my code:
<telerik:RadLabel ID="ProdDetails" runat="server" Text='<%# (HttpUtility.HtmlDecode((string)Eval("HtmlBody"))) %>'></telerik:RadLabel>
Although it functions properly, sometimes the HTML and CSS from the database take precedence over the site's CSS, causing instability on the site.
Therefore, I am seeking a solution to prevent incoming HTML from overriding my site's CSS styles.
Before downvoting or closing this question, please inform me if there are any missing details, mistakes, or necessary information.