Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

No way to set the allowed/default tags. #1

Open
StrawberryBunny opened this issue Apr 6, 2017 · 2 comments
Open

No way to set the allowed/default tags. #1

StrawberryBunny opened this issue Apr 6, 2017 · 2 comments

Comments

@StrawberryBunny
Copy link

The only way I see to set the allowed/default tags is via Parser's constructor but the parser instance is created as module.exports in index.js leaving no way to change them.

Some way to clear the list of tags so only those we register work would be ideal.

@JimLiu
Copy link
Owner

JimLiu commented Nov 7, 2017

import { Parser } from 'bbcode-to-react';

const parser = new Parser(yourTags)

@serusko
Copy link

serusko commented Jan 11, 2019

@StrawberryBunny

constructor(allowedTags = null) {

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants