PHP code example of lucadevelop / telegram-entities-decoder

1. Go to this page and download the library: Download lucadevelop/telegram-entities-decoder library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lucadevelop / telegram-entities-decoder example snippets


$entity_decoder = new EntityDecoder('HTML');
$decoded_text = $entity_decoder->decode($message);


use lucadevelop\TelegramEntitiesDecoder\EntityDecoder;
[...]
$entity_decoder = new EntityDecoder('HTML');
$decoded_text = $entity_decoder->decode($message);