Symbian.org/Forums.js
changeset 18 b73e6caf0031
parent 17 5dc2963cd75f
equal deleted inserted replaced
17:5dc2963cd75f 18:b73e6caf0031
   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>&bull; ");
       
   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, "&lt;").replace(/>/g, "&gt;");
   499 			var escaped = tagContent.replace(/</g, "&lt;").replace(/>/g, "&gt;");
   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( '"