There is a bug in PhantomJS on Mac OS X that doesn't render an HTML page as selectable text. It will be fixed in PhantomJS 2.0, so for now you'll have to apply a patch when installing with Homebrew.
First, update homebrew formulae:
If you already have PhantomJS installed, then remove it:
$ brew uninstall phantomjsNext, the PhantomJS formula needs to be edited to apply a patch that fixes native text rendering in Mac OS X:
Failed at the [email protected] install script 'node install.js'. This is most likely a problem with the phantomjs package, npm ERR! Not with npm itself. Tell the author that this fails on your system: npm ERR! Node install.js npm ERR! You can get their info via: npm ERR! Npm owner ls phantomjs npm ERR!
If, you previously had 2.0 installed, you'll need to rollback to 1.9.8:
Phantomjs 1.9.8 Download Mac
Edit the Formula
Phantomjs 1.9.8 Download Torrent
Add these lines after any other patches blocks and before the def install method:
Phantomjs Ubuntu
Finally, reinstall PhantomJS from source via homebrew and go do something else since your computer will be at 100% CPU for about 30 minutes: