if ($value == '</span>') {
var $opening = $openElements.pop();
- var $tmp = $opening.start + $.trim($buffer.pop()) + $opening.end;
+ var $tmp = $opening.start + $buffer.pop() + $opening.end;
if ($buffer.length) {
$buffer[$buffer.length - 1] += $tmp;
// [size]
data = data.replace(/\[size=(\d+)\]([\s\S]*?)\[\/size\]/gi, (function(match, size, content) {
- content = $.trim(content);
if (!content.length) {
content = this.opts.invisibleSpace;
}
// [color]
data = data.replace(/\[color=([#a-z0-9]*?)\]([\s\S]*?)\[\/color\]/gi, (function(match, color, content) {
- content = $.trim(content);
if (!content.length) {
content = this.opts.invisibleSpace;
}
// [font]
data = data.replace(/\[font='?([a-z,\- ]*?)'?\]([\s\S]*?)\[\/font\]/gi, (function(match, fontFamily, content) {
- content = $.trim(content);
if (!content.length) {
content = this.opts.invisibleSpace;
}