escaping utility methods
This commit is contained in:
1 parent
3b47f0fd9a
commit
56108f0605
4 files changed
+35
-3
No files matched your search
@@ -11,6 +11,16 @@ namespace ManiaControl;
|
||||
*/
|
||||
abstract class Formatter {
|
||||
|
||||
/**
|
||||
* Return the given Text with Escaping around it
|
||||
*
|
||||
* @param string $text
|
||||
* @return string
|
||||
*/
|
||||
public static function escapeText($text) {
|
||||
return '$<' . $text . '$>';
|
||||
}
|
||||
|
||||
/**
|
||||
* Format the given Time (in Milliseconds)
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user