Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomatic HTML simplifier tool?
    primarykey
    data
    text
    <p>Whenever I see a problem that would be shared by others, with a solution that would be fun to implement, it usually turns out to have been solved already. I think it's best to stop myself and do a search before I dive into the coding.</p> <p>Here's the situation: You can copy and paste sections of an office document into the visual studio HTML editor. The problem is, it creates HTML text that looks like this:</p> <pre><code>&lt;tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes"&gt; &lt;td style="border:solid windowtext 1.0pt;mso-border-alt:solid windowtext .5pt; padding:0cm 5.4pt 0cm 5.4pt" valign="top"&gt; &lt;p align="left" class="MsoNormal" style="text-align:left;tab-stops:center 216.0pt right 432.0pt"&gt; &lt;b style="mso-bidi-font-weight:normal"&gt;&lt;span lang="EN-US"&gt;ID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;/td&gt; &lt;td style="border:solid windowtext 1.0pt;border-left:none; mso-border-left-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt; padding:0cm 5.4pt 0cm 5.4pt" valign="top"&gt; </code></pre> <p>Fine for a machine, but this is not really human-readable. I bet this could be cleaned up by finding the repeating styles and creating CSS classes out of them. A computer program could do that really easy.</p> <p>I could run this program, and then I would have nice-looking, easy to maintain HTML that looks just like my Word document.</p> <p>(Yes, I know I can just edit my Word document and then copy-and-paste it into HTML, or just save it as an HTML file. But it just wouldn't be the same as hand-editing it after the fact).</p> <p>Anyway, does anyone know of a program that does this? </p> <p><hr /> (later edit) I discovered the question I asked is a duplicate of <a href="https://stackoverflow.com/questions/458249/tools-to-reduce-generated-html-size">this one</a>.</p>
    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