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...
I have coded a Javascript bbcode similar to the one I'm using to write this message. It also incorporates a live preview box like the one I see below. The only problem I'm facing at the moment is that some nested bbcode is not parsing.  For e...
I have regex patterns in PHP  $s = preg_replace("#\[URL\=(.*)\](.*)\[\/URL\]#Ui", "<a href=\"$1\" target=\"_blank\">$2</a>", $s); $s = preg_replace("#\[CODE\=(.*)\](.*)\[\/CODE\]#Uis", "<pre...
Text = "I have this text [b] and want this part to be bold [/b]."  How can I replace the [b] and [/b] with strong html tag  so that the output is => I have this text and want this part to be bold.  I tried using lodash replace like this bu...
I'm working on a BBcode editor, and was wondering how to toggle tags on selection using Javascript (similar to how the text editing menu works on StackOverflow).  Example:  Textarea  Lorem ipsum dolor sit amet.   If you select the text 'ipsum...
I wonder if there is a way to use ungreedy matching in JavaScript? I tried the U modifer, but it doesn't seem to work.  I want to write a small BBCode parser in JavaScript, but without ungreedy matching it isn't possible (at least as far as I...
So I have this function that I created that replaces special characters that are inside of a string. The main intent was to replace those special characters that were inside of the BBCode tag ([code=any]my code that I want to show[/code]), but at the...
I need a simple BBcode editor that could be integrated into an angular app. Something very-very basic like this one. But I could not find such a thing anywhere. The best thing I found is markItUp plugin for jQuery, but when I tried to integrate it i...
I have some trouble to find a regex. I would like to parse all smilies except in bbcode [code].  for example :   [code] :D  :D  :D  :D  [/code]   :D :D :D    My regex must matching the three :D out of bbcode.  I tried  (\[code\](.*?)\[\/code\]) to ma...
I'm writing BBCode to HTML praser via JavaScript. I successed with [b], [i], [img], ... tags, but with [list] tag, I dont know how to do, because it's element maybe 2, 3, n,... Can you help me convert from:  [list] item 1 item 2 item 3 [/list...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.