Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-06-06 17:18:07
- bryanarchy
- New Member
- Registered: 2007-06-06
- Posts: 3
[textile] converting html to textile
I know this is the textpattern forum, but i’m trying to use textile in a little project i’m working on. I’ve combed through this site and elsewhere but can’t seem to find out if there’s a way to convert html to textile in php.
I did find reference to detextile which was a function in an old version of textile, but that was about it.
Any help would be appreciated.
Offline
Re: [textile] converting html to textile
http://www.google.com/search?q=html2textile
http://www.google.com/search?q=detextile
Last edited by ruud (2007-06-06 17:43:38)
Offline
#3 2007-06-06 18:14:58
- bryanarchy
- New Member
- Registered: 2007-06-06
- Posts: 3
Re: [textile] converting html to textile
Google was my first stop on this trip. Html2textile seems to be only available in Python, and not php. References to detextile usually take you to textile’s version 2 beta and no mention of it beyond that.
I tried to examine the textpattern files and could not figure out if there is a reverse conversion used. I have a sneaking suspicion that textpattern may put entries into the database as textile formatted, not html formatted. Is that correct?
Offline
Re: [textile] converting html to textile
Both textile and html.
Textile, so you can easily edit it.
HTML, so the conversion doesn’t have to be done when the visitor loads the page.
Offline
#5 2007-06-07 00:14:10
- bryanarchy
- New Member
- Registered: 2007-06-06
- Posts: 3
Re: [textile] converting html to textile
hmm, that’s interesting but wouldn’t it contribute to database bloat with every entry being doubled? I guess for most cases, it wouldn’t matter.
I guess that this means detextile is on the cutting room floor then…
Offline
Re: [textile] converting html to textile
I know that this is an old thread but I was looking for some php script which could do the conversion and found that detextile up to now is working wonderfully.
Edited to warn that it does not convert ordered (ol) and unordered (ul) lists properly.
Last edited by colak (2007-12-05 10:02:31)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Offline