Renlok Posted January 29, 2008 Share Posted January 29, 2008 ive no clue about regex. but could someone help me make like a debbcoder for when a user needs to edit a post or something or atleast help me get started. Link to comment https://forums.phpfreaks.com/topic/88485-bbcode-help/ Share on other sites More sharing options...
laffin Posted January 30, 2008 Share Posted January 30, 2008 ya mean yer info is already converted to html, and u need it to go back to bbcode? that's pretty complicated order, as different bbcodes output different information. prolly the easiest way is to add html comments before and after each bbcode converstion. example: [url=http://www.google.com]google[/url] usually wud output <A HREF="http://www.google.com>google</A> but if u added html comments u can make yer job easier if it looked like <!--- bbcode: [url=http://www.google.com] --><A HREF="http://google.com"><!--- bbend -->google<!-- bbcode: [/url]></A><!--- bbend --> Yes it may add a lot of clutter, but will make reconstructing the original bbcoded message a whole lot easier Link to comment https://forums.phpfreaks.com/topic/88485-bbcode-help/#findComment-453223 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.