/ LJCPHPCodeDoc / LJCCommonLib / LJC / Scrub


Parameters
$text - The text to be scrubbed.

Returns

The scrubbed value.

Syntax

PHP
public static function Scrub(string $text): string

Returns a scrubbed external value.

Remarks

Trims the text, strips slashes and converts HTML characters to HTML entities.

Example

PHP
 // Returns a scrubbed external value.
 private static function Scrub()
 {
   $result = LJC::Scrub(" </tag> ");
 
   // result:
   // &lt;/tag&gt;
 }

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.