Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/choptastic/bbcode
A simple Erlang BBCode Parser
https://github.com/choptastic/bbcode
Last synced: 21 days ago
JSON representation
A simple Erlang BBCode Parser
- Host: GitHub
- URL: https://github.com/choptastic/bbcode
- Owner: choptastic
- Created: 2013-09-19T17:13:42.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-13T19:46:20.000Z (over 7 years ago)
- Last Synced: 2024-10-08T15:25:08.907Z (about 1 month ago)
- Language: Erlang
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Erlang BBCode
A simple erlang parser for BBCode -> HTML.
Not extensive, nor terribly well implemented, more of a quick and dirty approach
Does not sanitize anything, except for converting angle brackets and quotes to their HTML-Encodings.
Does not truly *parse* the text, and does not check for matching opening and closing tags.
## Usage
```erlang
Raw = "Some String with [i]italics[/i], [b]Bold[/b], [url=http://google.com]Links[/url] and images: [img]http://i.imgur.com/3B0pt3M.jpg[/img]",
Compiled = bbcode:compile(Raw),
```## Add to your app with rebar
```erlang
{deps, [
{bbcode, ".*", {git, "git://github.com/choptastic/bbcode.git", {branch, master}}}
]}.
```## About
Author: [Jesse Gumm](http://jessegumm.com) ([@jessegumm](http://twitter.com/jessegumm))
MIT License