We have a MultiPage in part of our app, it's essentially an email preview here:
<code>
<telerik:RadPageView ID="RadPageView1" runat="server" Visible="true">
<div id="divHTMLContent" runat="server">
</div>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView2" runat="server" Visible="true">
<div id="divPlainText" runat="server">
</div>
</telerik:RadPageView>
</code>
The problem arises that the HTML Content can contain styles, such as
<code>
<style type="text/css">
body {
background-color: #efefef;
color: #777777;
font-face: Garamond !important;
}
</style>
</code>
(deliberately chosen to demonstrate the effects)
These global styles are indeed global. In another context, I was able to <ol><li>introduce an iframe <li>HTMLEncode the content and <li>use jQuery to load the iframe at render time</ol> Any suggestions on how to get similar behaviour?
<code>
<telerik:RadPageView ID="RadPageView1" runat="server" Visible="true">
<div id="divHTMLContent" runat="server">
</div>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageView2" runat="server" Visible="true">
<div id="divPlainText" runat="server">
</div>
</telerik:RadPageView>
</code>
The problem arises that the HTML Content can contain styles, such as
<code>
<style type="text/css">
body {
background-color: #efefef;
color: #777777;
font-face: Garamond !important;
}
</style>
</code>
(deliberately chosen to demonstrate the effects)
These global styles are indeed global. In another context, I was able to <ol><li>introduce an iframe <li>HTMLEncode the content and <li>use jQuery to load the iframe at render time</ol> Any suggestions on how to get similar behaviour?