# BBCode for embedding a tweet in phpBB

Probably not perfect, but it works.

BBCode:

```
```

Replacement:

```
document.write(data.html);
}

```

## 3 thoughts on “BBCode for embedding a tweet in phpBB”

1. DN182 says:

Wouldn’t that be risky is someone added a dodgy JS file?

1. Yeah, I suppose it leaves you open to cross-site scripting vulnerabilities, but a phpbb forum isn’t a banking site. The forum on which I used this is private and only has about 40 users, none of whom would do such a thing.