标签: javascript
如何用[b]something[b]替换字符串<b>something</b>
[b]something[b]
<b>something</b>
示例
var str = "Here is [b]an[b] example";
应该是:
"Here is <b>an</b> example"