Skip to content

Commit

Permalink
added setAllowedSubtags, getAllowedSubtags, setInnerTextAllowed, isIn…
Browse files Browse the repository at this point in the history
…nertextAllowed, isInlineElement, isBlockElement methods to TagInterface.php
  • Loading branch information
dwilbourne committed Aug 29, 2024
1 parent e9cf410 commit 24d817b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/html/tag/TagInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,41 @@ interface TagInterface extends TagVoidInterface
*/
public function addInnerHtml(TagVoidInterface|TagInterface|MsgInterface|string $innerHtml): void;

/**
* setAllowedSubtags
* @param array<string> $subTagNames
*/
public function setAllowedSubtags(array $subTagNames): void;

/**
* getAllowedSubTags
* @return array<string>
*/
public function getAllowedSubTags(): array;

/**
* setInnerTextAllowed
* @param bool $innerTextAllowed
*/
public function setInnerTextAllowed(bool $innerTextAllowed): void;

/**
* innerTextAllowed
* @return bool
*/
public function isInnerTextAllowed(): bool;

/**
* isInlineElement
* @return bool
*/
public function isInlineElement(): bool;

/**
* isBlockElement
* @return bool
*/
public function isBlockElement(): bool;

/**
* getInnerHtml
Expand Down

0 comments on commit 24d817b

Please sign in to comment.