PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
remove formatting mysql database field

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions
View previous topic :: View next topic  
Author Message
tallkth



Joined: 03 Mar 2008
Posts: 2

PostPosted: Mon Mar 03, 2008 6:20 pm    Post subject: remove formatting mysql database field Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1235

PostPosted: Mon Mar 03, 2008 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
tallkth



Joined: 03 Mar 2008
Posts: 2

PostPosted: Tue Mar 04, 2008 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PEAR Forum Forum Index -> General PEAR questions All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement