Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to preview html in textarea in mvc
    primarykey
    data
    text
    <p>I am using a textarea in which I am allowing the user to enter his html.</p> <p>When the user is enter the HTML there is a option of preview (button), when the user click on Preview button, then the textarea is hid and the html is shown in a div. </p> <p>When the user is entering some html with body tag etc the design of the page is disturbed.</p> <p>Any way to solve it</p> <p>The problem I am facing is when a preview is generated.</p> <p>demo HTML</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Contest Announcement&lt;/title&gt; &lt;style type="text/css"&gt; body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0 auto; padding:0; background-color:#FFFFFF;} #outlook a {padding:0;} #backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;} .ExternalClass {width:100%;} .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic; display:block; border:none;} p {margin: 1em 0;} table td {border-collapse: collapse;} .symbolfix img{width:10px !important;height:10px !important;} &lt;/style&gt; &lt;/head&gt; &lt;body style="width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0 auto; padding:0; background-color:#FFFFFF;"&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload