Improve example

This commit is contained in:
Daniil Gentili 2024-04-15 16:02:14 +02:00
parent 6fd7154c55
commit 86f82808f1
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ $entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
$sm($entities->message, entities: $entities->entities);
// Convert markdown to an array of entities locally
$entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
$entities = Entities::fromMarkdown("*This is _a ❤️ nested_ test*");
$sm($entities->message, entities: $entities->entities);
```

View File

@ -50,7 +50,7 @@ $entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
$sm($entities->message, entities: $entities->entities);
// Convert markdown to an array of entities locally
$entities = Entities::fromHtml("<b>This is <i>a ❤️ nested</i> test</b>");
$entities = Entities::fromMarkdown("*This is _a ❤️ nested_ test*");
$sm($entities->message, entities: $entities->entities);
// See https://github.com/danog/telegram-entities for the full list of available methods!