tags:

views:

1639

answers:

3

I'm scraping a static html site and moving the content into a database-backed CMS. I'd like to use Textile in the CMS.

Is there a tool out there that converts HTML into Textile, so I can scrape the existing site, convert the HTML to Textile, and insert that data into the database?

+3  A: 

Check this PHP solution:

http://debuggable.com/posts/how-to-transform-html-to-textile-markup-the-cakephp-textilehelper-revisited:480f4dfe-a258-4b54-a31b-4933cbdd56cb

daremon
Thanks! That link helped.
Steven Murawski
A: 

This is a simple markup replacement, nothing a good regex could not fix.

I recommend Perl, LWP::Simple and some regexes to do the whole thing (spidering, stripping design and menus, converting to textile, and then posting to the database.)

Osama ALASSIRY
A: 

Here is a c# lib converting html 2 textile. Though it is textile with their additions. Not pure textile.