1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/14962] Introduces a new helper to check emptyness of bbcode texts

PHPBB3-14962
This commit is contained in:
Tristan Darricau
2017-01-06 19:52:17 +01:00
parent 2251816b10
commit f82299b8e4
4 changed files with 45 additions and 8 deletions

View File

@@ -62,10 +62,18 @@ interface utils_interface
public function remove_bbcode($text, $bbcode_name, $depth = 0);
/**
* Return a parsed text to its original form
*
* @param string $text Parsed text
* @return string Original plain text
*/
* Return a parsed text to its original form
*
* @param string $text Parsed text
* @return string Original plain text
*/
public function unparse($text);
/**
* Return whether or not a parsed text represent an empty text.
*
* @param string $text Parsed text
* @return bool Tue if the original text is empty
*/
public function is_empty($text);
}