nexuslinkservices / html-tag-appendar
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/nexuslinkservices/html-tag-appendar
Requires
- php: >=5.6.2
Requires (Dev)
- phpunit/phpunit: 5.5.*
This package is not auto-updated.
Last update: 2025-10-12 02:14:26 UTC
README
Find word and append provided HTML tag around word.
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.