六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 131|回复: 0

BBCode zz

[复制链接]

升级  61%

251

主题

251

主题

251

主题

进士

Rank: 4

积分
805
 楼主| 发表于 2013-2-7 20:50:23 | 显示全部楼层 |阅读模式
BBcode

BBCode is short for Bulletin Board Code. It is used as a way for formatting posts made on message boards, blogs and more. It is similar to HTML in the sense that in BBCode one does also use tags to format something specific (contained within the tag). In BBCode tags are indicated by rectangular brackets surrounding a keyword, which is in turn transformed into HTML before being delivered to a web browser.

BBCode was implemented as method of providing a safer and easier way of allowing posts to be formatted on forums. Before BBCode forums sometimes allowed users to include HTML code in their posts, which had many security issues (i.e. the user could execute javascript code, break the layout of the site and so on). With BBCode being parsed by the forum scripts it is easier to control what the user can do and can not do (allowing or not allowing specific BBCode tags).

The basic BBCode tags are often very similar accross many different forums, but there are some variants in existance as well. Sometimes BBCode tags has to be in specific cases (i.e. bold text will work, while bold tex will not). It is also very different as to which of the more unsafe and/or complex tags that are supported. For instance you cannot always expect the [img] image tag to be supported as allowing posters unlimited power to post any picture they like could have some pretty nasty effects.
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表