Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Mar 2010, 16:19
developpez.com developpez.com is offline
 
Join Date: Oct 2005
Generate BBCode from HTML

Hi,

I am trying to import external html content in my vbulletin forum. The aim is to create programmatically threads with the external content. I do not want to allow html in posts for security reasons, so the question is quite simple : how to generate bbcode post content from html content ?
I am aware that the whole html content won't be convertible into bbcode, lots of tags don't exist in bbcode, so how to convert the most of a html content in bbcode?

In fact I already know how to convert html->bbcode by using the vB_BbCodeParser class, but how to convert on the other way ?

Thanks
Reply With Quote
  #2  
Old 28 Mar 2010, 20:13
developpez.com developpez.com is offline
 
Join Date: Oct 2005
Ok, I found a solution : calling ajax.php with the switchmode option, this url is called when using the wysiwyg editor.
Reply With Quote
  #3  
Old 17 Aug 2012, 01:03
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Originally Posted by developpez.com View Post
Ok, I found a solution : calling ajax.php with the switchmode option, this url is called when using the wysiwyg editor.
Can you be more specific about how you did this?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:33.

Layout Options | Width: Wide Color: