Skip to content

Commit 9ac0762

Browse files
committed
adjust readme
1 parent 17a788b commit 9ac0762

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ You can add the attribute `disabled`, then it will not be rendered.
180180

181181
See all the different [TagEngine Tests](https://github.com/LordSimal/custom-html-elements/blob/main/tests/TagEngine/)
182182

183+
## Limitations
184+
185+
Since everything gets parsed via regex, there are some limitations related to how regex works.
186+
187+
E.g. if you have an enormous amount of HTML which needs to be parsed at once, it may be possible that the regex fails to parse the HTML correctly (e.g. [PREG_BACKTRACK_LIMIT_ERROR](https://www.php.net/manual/en/function.preg-last-error.php#refsect1-function.preg-last-error-returnvalues))
188+
189+
In this case you will have to find another way to encapsulate your HTML elements in PHP.
190+
183191
## Acknowledgements
184192

185193
This library is inspired by the following packages

0 commit comments

Comments
 (0)