tiptap-php
tiptap-php copied to clipboard
Ensure number strings are treated as HTML
- A pure number string like
1999will currently be interpreted as valid JSON - This will fail in subsequent steps because a JSON object/array is expected, instead of the number
1999 - This change will mark any string starting with a number as HTML going forward
- An alternative could be to expect
{or[as first character to mark things as JSON - I've added a test, but can't get it to run locally because of PHP deprecations in Pest :(