Method | Description | |
---|---|---|
clean_formatting ( string $xml ) : string | Replace BBCodes and other formatting elements with whitespace | |
generate_quote ( $text, array $attributes = [] ) | ||
get_outermost_quote_authors ( string $xml ) : string[] | Get a list of quote authors, limited to the outermost quotes | |
remove_bbcode ( string $xml, string $bbcode_name, integer $depth ) : string | Remove given BBCode and its content, at given nesting depth | |
unparse ( string $xml ) : string | Return a parsed text to its original form |
Method | Description | |
---|---|---|
enquote ( string $str ) : string | Return given string between quotes |
public clean_formatting ( string $xml ) : string | ||
$xml | string | Parsed text |
return | string | Plain text |
public generate_quote ( $text, array $attributes = [] ) | ||
$attributes | array |
public get_outermost_quote_authors ( string $xml ) : string[] | ||
$xml | string | Parsed text |
return | string[] | List of authors |