html2bbcode.js
Convert HTML to BBCode
Licenses
MIT
Usage:
var HTML2BBCode = HTML2BBCode; var converter = opts;var bbcode = converter;console;
$ npm install -g html2bbcode$ html2bbcode --imagescale test.html
Options
// enable image scale, default: false imagescale: true // enable transform pixel size to size 1-7, default: false transsize: true // disable list <ul> <ol> <li> support, default: false nolist: true // disable text-align center support, default: false noalign: true // disable HTML headings support, transform to size, default: false noheadings: true;