Jump to content

bbcode help


Renlok

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.