Improve babel page display
This commit is contained in:
		
					parent
					
						
							
								503e5847f9
							
						
					
				
			
			
				commit
				
					
						903b960d4c
					
				
			
		
					 1 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -36,31 +36,31 @@ function babel_content()
 | 
			
		|||
		$o .= visible_lf($text) . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		$html = bbcode($text);
 | 
			
		||||
		$o .= '<h2>' . t('bb2html (raw HTML): ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bbcode (raw HTML): ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= htmlspecialchars($html) . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		//$html = bbcode($text);
 | 
			
		||||
		$o .= '<h2>' . t('bb2html: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bbcode: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= $html . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		$bbcode = html2bbcode($html);
 | 
			
		||||
		$o .= '<h2>' . t('bb2html2bb: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bbcode => html2bbcode: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= visible_lf($bbcode) . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		$diaspora = bb2diaspora($text);
 | 
			
		||||
		$o .= '<h2>' . t('bb2md: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bb2diaspora: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= visible_lf($diaspora) . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		$html = Markdown($diaspora);
 | 
			
		||||
		$o .= '<h2>' . t('bb2md2html: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bb2diaspora => Markdown: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= $html . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		$bbcode = diaspora2bb($diaspora);
 | 
			
		||||
		$o .= '<h2>' . t('bb2dia2bb: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bb2diaspora => diaspora2bb: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= visible_lf($bbcode) . EOL . EOL;
 | 
			
		||||
 | 
			
		||||
		$bbcode = html2bbcode($html);
 | 
			
		||||
		$o .= '<h2>' . t('bb2md2html2bb: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= '<h2>' . t('bbcode => html2bbcode: ') . '</h2>' . EOL . EOL;
 | 
			
		||||
		$o .= visible_lf($bbcode) . EOL . EOL;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue