Skip to content

Simple class that closes all opened html tags in a provided string

License

Notifications You must be signed in to change notification settings

PrzemekDeren/closeAllHtmlTags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

closeallhtmltags

Simple class that closes all opened html tags in a provided string

-- Usage --

<?php

require_once './closeAllHtmlTags.php';

$someMessyHtml = "<p><strong>Bold</p><p>This shoudn't be bold.</p>";
echo '<p>Messy HTML: </p>'.$someMessyHtml.'</strong>';

$cleanHtml  =  closeAllHtmlTags::index($someMessyHtml);
echo '<p>Now it\'s  OK: </p>'.$cleanHtml;

About

Simple class that closes all opened html tags in a provided string

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages