$string = 'I love PHP'; $encoded_string = Util\js_entities\JsEntities::encode($string); // Output: I love %3Cb%3EPHP%3C%2Fb%3E
$encoded_string = 'I love %3Cb%3EPHP%3C%2Fb%3E'; $decoded_string = Util\js_entities\JsEntities::decode($encoded_string); // Output: I love PHPIn summary, php Util js_entities is a package library that provides functions for encoding and decoding HTML entities in PHP using JavaScript's encodeURIComponent() and decodeURIComponent() functions.