<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>hi, it&#39;s mike</title>
    <link>https://mike.puddingtime.org/tags/html/</link>
    <description>Recent content on hi, it&#39;s mike</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>mike@puddingtime.org (mike)</managingEditor>
    <webMaster>mike@puddingtime.org (mike)</webMaster>
    <copyright>© 2026, mike</copyright>
    <lastBuildDate>Fri, 21 May 2010 05:21:49 +0000</lastBuildDate>
    <atom:link href="https://mike.puddingtime.org/tags/html/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The Tyranny of Notepad</title>
      <link>https://mike.puddingtime.org/posts/2010-05-21-the-tyranny-of-notepad/</link>
      <pubDate>Fri, 21 May 2010 05:21:49 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2010-05-21-the-tyranny-of-notepad/</guid>
      
      <description>Apple Wins Ground in Fight Over Flash:
“Since the iPad came out we’ve had a lot of clients say that they just don’t want Flash on their sites,” said Chantelle Simoes, vice president at Ninth Degree Inc., a design firm in Dana Point, Calif., which has built websites for Sanyo and the National …</description>
      <content:encoded><![CDATA[<p><a href="http://online.wsj.com/article/SB10001424052748704912004575252662401694670.html">Apple Wins Ground in Fight Over Flash</a>:</p>
<blockquote>
<p>&ldquo;Since the iPad came out we&rsquo;ve had a lot of clients say that they just don&rsquo;t want Flash on their sites,&rdquo; said Chantelle Simoes, vice president at Ninth Degree Inc., a design firm in Dana Point, Calif., which has built websites for Sanyo and the National Aeronautics and Space Administration. If current trends continue, Ms. Simoes said, her 10-person firm will need to hire people familiar with Apple&rsquo;s development tools.</p>
</blockquote>
<p>I understand it&rsquo;s very hard to find people able to operate a text editor these days.</p>
<p>#adobe #apple #flash #html</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20The%20Tyranny%20of%20Notepad">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
    <item>
      <title>Sanitize HTML With Sanitize</title>
      <link>https://mike.puddingtime.org/posts/2009-03-18-sanitize-html-with-sanitize/</link>
      <pubDate>Wed, 18 Mar 2009 03:40:27 +0000</pubDate><author>mike@puddingtime.org (mike)</author>
      <guid>https://mike.puddingtime.org/posts/2009-03-18-sanitize-html-with-sanitize/</guid>
      
      <description>Handy gem:
[sourcecode language=&#39;ruby&#39;] !/usr/bin/env ruby require &#34;rubygems&#34; require &#34;sanitize&#34; markup = STDIN.read Sanitize.clean!(markup, Sanitize::Config::BASIC) puts markup [/sourcecode] Sanitize is built on Hpricot and provides quick-n-easy HTML cleanup. I plonked the above into a TextMate …</description>
      <content:encoded><![CDATA[<p>Handy gem:</p>
<pre><code>[sourcecode language='ruby']      !/usr/bin/env ruby

require &quot;rubygems&quot;

require &quot;sanitize&quot;

markup = STDIN.read

Sanitize.clean!(markup, Sanitize::Config::BASIC)

puts markup

[/sourcecode]
</code></pre>
<p><a href="http://wonko.com/post/sanitize">Sanitize</a> is built on Hpricot and provides quick-n-easy HTML cleanup.  I plonked the above into a TextMate command and it automatically makes Word HTML 90 percent more tolerable by discarding style and class attributes and leaving just the most basic markup.</p>
<p>You can also configure it to leave some tags alone, permit some tags to have certain attributes but not others, etc. There are also &lsquo;Restricted&rsquo; and &lsquo;Relaxed&rsquo; levels of sanitization.</p>
<p>Insert some gushing about Ruby making my life better here.  I don&rsquo;t <em>care</em> if its syntax is too forgiving, loose or whatever: When I can eliminate a source of irritation in six lines of code, I&rsquo;ll capitalize every vowel if required.</p>
<p>#html #ruby</p>
<p><em><a href="mailto:mike@puddingtime.org?subject=Re%3A%20Sanitize%20HTML%20With%20Sanitize">Drop a line about this</a>.</em></p>]]></content:encoded>
    </item>
  </channel>
</rss>
