🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

bbcode-html

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbcode-html

bbcode to html,you can used it for your project if you have a vue or react project,good luck for you

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

bbcode-html

bbcode-html

NPM 下载包

npm i bbcode-html --save-dev

bbcode使用

import BBCODE from 'bbcode-html'
BBCODE.render("[url=\"http://www.baidu.com\"]百度[/url]")
// <a href="www.baidu.com" class="ask_link" target="_blank">百度</a>

var converter = new BBCODE.HTML2BBCode(Options);
var bbcode = converter.feed(data);
console.log(bbcode.toString());

Options配置

new BBCODE.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
});

For detailed explanation on how things work, checkout the docs for bbcode-html.

Keywords

bbcode

FAQs

Package last updated on 22 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts