Created
February 2, 2012 14:56
-
-
Save HarpyWar/1723831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bbcodeParser.htmlToBBCode doesn't work with complex tags. | |
For instance: | |
bbcodeParser.addBBCode('[quote={TEXT1}]{TEXT2}[/quote]', '<div class=quote><cite>{TEXT1}</cite><p>{TEXT2}</p></div>'); | |
var bbcode = bbcodeParser.htmlToBBCode('<div class=quote><cite>Author</cite><p>My message</p></div>'); | |
It returns the same HTML string, but not BB code string. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment