 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
tallkth
Joined: 03 Mar 2008 Posts: 2
|
Posted: Mon Mar 03, 2008 6:20 pm Post subject: remove formatting mysql database field |
|
|
Hi - I've inherited a website that uses a Pear's Text_Wiki. I am new to Pear and I need to move part of the website elsewhere (a workmate needs to take her data with her as she switches jobs). There are two mysql tables worth of information that need to go; I can do a mysqldump to get the data, the problem is that some of the fields have wiki markup.
How can I convert the markup into html (or even plain text) so that when I give her the .sql file she can move it to a non-wiki site?
Thanks in advance for any suggestions. |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1011
|
Posted: Mon Mar 03, 2008 11:26 pm Post subject: |
|
|
Text_Wiki can produce an XHTML version of the wiki markup, e.g. like this:
| Code: |
$wiki = new Text_Wiki();
$xhtml = $wiki->transform($wiki_markup, 'Xhtml');
|
|
|
| Back to top |
|
 |
tallkth
Joined: 03 Mar 2008 Posts: 2
|
Posted: Tue Mar 04, 2008 12:50 am Post subject: |
|
|
Thank you so much, that is exactly what I was looking for. That is going to make my life so much easier.
Thanks again! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|