Appearance
Stash
php
final class KMark\StashHTML that is put aside while a text is read, so that nothing reads it again: each piece is replaced by a token, and the tokens are replaced by the pieces at the end.
Source: src/Stash.php
Methods
clean()
php
public static function clean(string $text): stringThe text without the characters that make the tokens, so that a text cannot forge one.
put()
php
public function put(string $html): stringPuts a piece of HTML aside and gives the token that stands for it.
restore()
php
public function restore(string $text): stringWrites the pieces back, the ones that hold tokens too.