title: How to get contents of the clipboard in the format of HTML on Mac OS X?
body: <p>I can get the contents of the clipboard in the format of HTML on linux by using <code>xclip</code></p>
  
  <pre><code>xclip -selection clipboard -o -t text/html
  </code></pre>
  
  <p>How can I do the same thing on Mac OS X? I heard that I could use <code>pbpaste</code>, but none of the following command worked for me.</p>
  
  <pre><code>pbpaste
  pbpaste -Prefer rtf
  </code></pre>
  
  <p>Sometimes it just output plain text, and sometimes it output nothing.</p>
  
  <p>Is there any way to do it?</p>