Skip to content

galiteintechnologies/html-tag-appendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Html Tag Appendar

Find word and append provided HTML tag around word.

Latest Version Software License Scrutinizer Code Quality Build Status

Installation

If you use composer, you can add this package by running

composer require galiteintechnologies/html-tag-appendar

Usage

<?php

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>");

Output

This content has some <b>dummy</b> text. I want to highlight <b>dummy</b> text with bold tag.

CONTRIBUTING:

Pull requests are always welcome.

About

Find word and append provided HTML tag

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages