[][src]Function bbclash::bbcode_to_html_ugly

#[no_mangle]
pub fn bbcode_to_html_ugly(input: &str) -> String

Generates a string of HTML from an &str of BBCode. This function produces ugly output, meaning that any eroneously written BBCode or empty tags encountered will be included in the final output.

Examples

use bbclash::bbcode_to_html_ugly;

assert_eq!(bbcode_to_html_ugly("I'm [colour]missing an argument![/colour]"), 
   	"<p>I&#x27m [colour]missing an argument![/colour]</p>");

assert_eq!(bbcode_to_html_ugly("[quote][/quote]"), 
   	"<blockquote></blockquote>");