PHP Labware internal utilities / htmLawed
htmLawed class / OOP code

htmLawed is also available in object-oriented programming (OOP) code for PHP 5 or higher. It is ~5% slower and uses ~5% more memory than the non-OOP version of htmLawed – download for current htmLawed version (tested in PHP 5.6.10, 7.0.0, 7.2, and 8.1.6).

Usage of the htmLawed class is very simple as shown in the example below.
// Autoload the class in PHP 5. No need to instantiate.
$out = htmLawed::hl($in, array('safe'=>1, 'elements'=>'a, b, strong, i, em, li, ol, ul'));

To learn more about htmLawed, visit the htmLawed web-site:

htmLawed | PHP Labware home | visitors since Sept 2017