Method lintercept
- Info
-
<?php public function lintercept (string $suspect, string $char = 'T'); ?>
Character interceptor. Escapes desired characters by a single char denotation.
- Arguments
-
@suspect
- Requires funcdown formatted string.-
@char
- Optional. Accepts the following characters:'T' - Main text. In funcdown, text nodes are wrapped within
{
and}
. In a situations where one is dealing with a lot of preformatted source code of some sort, right curly brace is 'dangerous', therefore it need to be escaped, like this:\}
'A' - Attributes. Funcdown wraps attributes within parenthesis
(
and)
and just like with main text, there are few characters that one must pay attention to. Those are)
,,
and{
respectfully.'M' - Microdown. Learn more about String Mode
'C' - Just commas.
- Return Value
-
Returns escaped funcdown string.