487 case 'size': return '<font size="'+param+'">' + bbcode2html(tagContent) + '</font>'; |
487 case 'size': return '<font size="'+param+'">' + bbcode2html(tagContent) + '</font>'; |
488 case 'color': return '<font color="'+param+'">' + bbcode2html(tagContent) + '</font>'; |
488 case 'color': return '<font color="'+param+'">' + bbcode2html(tagContent) + '</font>'; |
489 case 'left': return '<div align="left">' + bbcode2html(tagContent) + '</div>'; |
489 case 'left': return '<div align="left">' + bbcode2html(tagContent) + '</div>'; |
490 case 'right': return '<div align="right">' + bbcode2html(tagContent) + '</div>'; |
490 case 'right': return '<div align="right">' + bbcode2html(tagContent) + '</div>'; |
491 case 'center': return '<div align="center">' + bbcode2html(tagContent) + '</div>'; |
491 case 'center': return '<div align="center">' + bbcode2html(tagContent) + '</div>'; |
492 case 'list': return tagContent; // todo |
492 case 'list':{ |
|
493 tagContent = tagContent.replace(/\[\*\]/g, "<br>• "); |
|
494 return bbcode2html(tagContent); // todo |
|
495 } |
493 case 'php': |
496 case 'php': |
494 case 'code': return '<div class=codebox><code>' + tagContent + '</code></div>'; |
497 case 'code': |
495 case 'html':{ |
498 case 'html':{ |
496 var escaped = tagContent.replace(/</g, "<").replace(/>/g, ">"); |
499 var escaped = tagContent.replace(/</g, "<").replace(/>/g, ">"); |
497 return '<div class=codebox><code>' + escaped + '</code></div>'; |
500 return '<div class=codebox><pre>' + escaped + '</pre></div>'; |
498 } |
501 } |
499 case 'quote': return '<div class=codebox><b>Quote:</b><br><i>' + tagContent + '</i></div>'; |
502 case 'quote': return '<div class=codebox><b>Quote:</b><br><i>' + tagContent + '</i></div>'; |
500 case 'url': { |
503 case 'url': { |
501 if ( eqsign > -1 ) { |
504 if ( eqsign > -1 ) { |
502 return "<div class=\"FeedItemLink\"><a href=\"JavaScript:void(0)\" onclick=\"openURL( '" |
505 return "<div class=\"FeedItemLink\"><a href=\"JavaScript:void(0)\" onclick=\"openURL( '" |