The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Request: High powered HTML to BBCode converter
Hi. I'm looking for a high powered HTML to BBCode converter. Yes, there already is convert_wysiwyg_html_to_bbcode(), but it has two limitations:
1) It seems to mess up carefully spaced things (using <pre> tags). This is no big deal until you put Python code (in html form) through :surprised: 2) It seems to be limited in the html it can handle - more for wysywig stuff - I'm looking to take an actual html page, and load it up into a post, as bbcode Any help would be appreciated. Forgot to add - also, convert_wysiwyg_etc chokes on "e;'s - they come in literally (ampersand-q-u-o-t-e-, not as quotation marks |
#2
|
|||
|
|||
This would be very difficult todo. Reason being is that html can be laid out in 100's of different ways at times to achive the same effect.
Also there as so many tags that can be used in web pages which you wouldnt want to create a bbcode for such being javascript which a good deal of pages now rely on. Finaly you would need a bbcode for every thing in an html page could possible have. Meaning 1000's off bbcodes. |
#3
|
|||
|
|||
Tim, that's a good point. Let me rephrase my request then:
1) A patch to handle spacing properly (<pre>'s and whatnot), specificly for Python code. 2) A patch to handle "e's properly (and any other similar entities). |
#4
|
|||
|
|||
spacing whats happening is your taking a file that was done with type spacing of the space bar and on the web it will only show one of them. Your best bet is for " " to be replaced with
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|