| PHP |
|---|
|
public function GetBegin(string $name, LJCTextState $textState , LJCAttributes $attribs = null, bool $addIndent = true , bool $childIndent = true): string |
| PHP |
|---|
$textState = new LJCTextState();
$tb = new LJCTextBuilder();
// Example Method:
// Starts the text with a newline if the builder already has text, param
// allowNewLine = true and builder text does not end with a newline.
// The text begins with the current indent string if param
// addIndent = true.
// Defaults: addIndent = true, allowNewLine = true.
$result = $tb->GetBegin("body", $textState);
// result:
// <body>
|