PHP code example of nexuslinkservices / html-tag-appendar

1. Go to this page and download the library: Download nexuslinkservices/html-tag-appendar 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/ */

    

nexuslinkservices / html-tag-appendar example snippets




use HtmlTagAppendar\StringTagAppendar;

$stringTagAppendar = new StringTagAppendar();
        
$content = "This content has some dummy text. I want to highlight dummy text with bold tag.";        

$result = $stringTagAppendar->appendAround($content, "dummy", "<b>");