1.2.6 • Published 7 years ago

html2bbcode v1.2.6

Weekly downloads
113
License
MIT
Repository
github
Last release
7 years ago

html2bbcode.js

NPM version Build Status Coveralls Status Downloads

Convert HTML to BBCode

Licenses

MIT

Usage:

var HTML2BBCode = require('./html2bbcode').HTML2BBCode;

var converter = new HTML2BBCode(opts);
var bbcode = converter.feed(data);
console.log(bbcode.toString());
$ npm install -g html2bbcode
$ html2bbcode --imagescale test.html

Options

new HTML2BBCode({
  // 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
});
1.2.6

7 years ago

1.2.5

8 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.2

9 years ago

1.1.0

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago