Hi,
I'm writing a small blog module. I want the users to be able to type BBCode. I need to convert that to XHTML to store in the DB, which I managed to do for most of the tags, except for [url].
There are two cases I want to allow:
[url=http://stackoverflow.com/]
which should be converted to
<a href="http://www.stackoverflow.com"&g...
Hi,
Whats your favourite library for .Net for handling either:
BBCode markup
Wiki markup
Why do you use those libraries, what is so good about them and why should I use them?
Cheers
Moo
...
I've got a situation where the client is using php4 and doesn't look like they heave PEAR. Is there an established php bb code parser that will work with vbulletin's bb code system?
I just need to convert the bb code to html. This is a data migration from vbulletin to a new platform, so I can't use vbulletin's bb code parser.
Docs:
ht...
Currently i'm parsing bbcode server side but i'd like to show a preview just like this site does.
If I process the bbcode serverside using ajax it's a bit laggy, so i thought doing it client side, to just show the preview.
Do you guys know any bbcode parser written in javascript?
...
Hi.
I need help finding a viable solution to convert bbcode to html, this is where ive come so far, but fails when bbcodes get wrapped.
Src:
[quote id="ohoh81"]asdasda
[quote id="ohoh80"]adsad
[quote id="ohoh79"]asdad[/quote]
[/quote]
[/quote]
Code:
<xsl:variable name="rules">
<code check="
" ><br/&g...
Hello ,
The point of my idea is to write a program for a Web site that has it's own BB CODE (PHP) ,then user of the program can write his message and range his message with this BB code (inside the program) ,
all this can be done easily , but just one thing I can't do , How can I add a Review before send with this BB code (without conn...
Hello, I'm trying to do a bbcode parser class that can create personalyzed tags, but I have some problem with urls
I've did all I need without particular problems thanks to regular expressions but I have a problem when I try to create a special tag who point to a specified URL.
In my class I've added a method like this:
<?
private...
So i wanna do something like this in php. If i have a year in brackets [1995] I want it to convert it to the the difference of the current year to 1995.
Something like "It's been [1995] years since something happened."
so with it being 2009, it'd say
"It's been 14 years since something happened."
Obviously the subtracting part wou...
Background
I have written very simple BBCode parser using C# which transforms BBCode to HTML. Currently it supports only [b], [i] and [u] tags. I know that BBCode is always considered as valid regardless whatever user have typed. I cannot find strict specification how to transform BBCode to HTML
Question
Does standard "BBCode to HTML...
I was using str_replace for other bbcodes, but I'm stuck with the url portion.
I need to convert:
[url=http://maps.google.com/maps?ie=UTF-8&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&q=brits+pub&near=Pasadena,+CA&fb=1&cid=0,0,17926180203917841249&sa=X&oi=local_result&resnum...
I have a problem with my RegEx. I want to translate a BBCode Link like
[link=www.stackoverflow.com]Stack-Overflow[/link]
into a HTML Link like
<a href='www.stackoverflow.com'>Stack-Overflow</a>.
In my String it's possibile to make more than one link in BBCode.
I Also need a function to translate the html back to BBCode.
My f...
I'm trying out the PEAR HTML_BBCodeParser script on my home server. For some reason, the script displays backslashes () before single and double quotes in the text after being parsed. I've skimmed through the code, but can't find the place where it does this. Might have missed something--the file is 900 lines long! If anybody knows what ...
Hoping there's some TinyMCE guys in here ready to help. I'm using the BBCode plugin.
I have the following lines in the editor window:
This is line one
This is line three
Line two is empty. When I'm viewing this in HTML i get the following.
This is line one
This is line three
Without the extra empty line.
tinyMCE.init({
mode ...
I have a phpBB2 forum with posts stored in BBCode. The forum posts are stored like this in the database:
[quote:e5adceb8e8][quote:e5adceb8e8="Person 2"][quote:e5adceb8e8="Person 3"]Nested quote[/quote:e5adceb8e8]Another nested quote[/quote:e5adceb8e8]Some text[/quote:e5adceb8e8]
[b:e5adceb8e8]Some bold text[/b:e5adceb8e8]
[i:e5adceb8e8...
I'm trying to match on "url" BB code tag in a random piece of text. Example text:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. [url]http://www.google.com[/url] Donec purus nunc, rhoncus vitae tempus vitae, [url=www.facebook.com]facebook[/url] elementum sit amet justo.
I want to find both "url" tags from this text:
[u...
Hi!
I've written a regular expression to strip out BBCode tags - it just strips the allowed tags out (for later counting the string length without the tags).
I'm not an expert when it comes to regular expressions - so after an hour I found this pretty much working:
$pattern = "/\[\/?(i|b|u|url(.*?)|list|li)[\]\[]*\]/i";
$stripped = pre...
Update
I have have this up and working on my site. http://rsolberg.com/ViewBlog/21
I'm currently testing out the MarkItUp rich text editor in a MVC app, and everything is working great with the exception of the preview. In the settings (set.js), there is a previewParserPath property ("path to your BBCode parser"). I'm not exactly s...
Is there any (X)HTML to BBCode coverter python module out there?
I'd like to migrate my website forum from markdown to BBCode but I didn't found out any simple way. One option is to convert the markdown text to (X)HTML using the built in django markup module and then convert it again to BBCode. Well, I realized that find a (X)HTML to BB...
I want to format some part of my javadocs with a simpler syntax than the basic html we have to use (for things like bold and italic, also for paragraph and code).
Is anybody knows a tool that let me use a kind of bbcode syntax in my source and will transform those bbcode comments into valid javadoc comments ?
It could be an IDE plugin,...
I'm trying to get regexp to match some nested tags. (Yes I know I should use a parser, but my input will be correct).
Example:
Text.
More text.
[quote]
First quote
[quote]
Nested second quote.
[/quote]
[/quote]
Let's say I want the regexp to simply change the tags to <blockquote>:
Text.
More text.
<blockquote>
First quote
<blockquot...