Functions and Constants

 

Dimofinf provides numerous functions and constants that save your time and help you in programming. The function and its parameter are mentioned below. 

(clean_user_input($text, $noscript = false

This function is cleaning up the text from HTML harmful codes, noting that it works to be compatible with the editor’s permissions of the user. As if it is allowed to use HTML codes, so that the function will not clean up the codes. 

Parameter: 

-text$ (mandatory): enter the text that you need to clean up. 

-noscript$ (optional): the value boolean true/false to determine if you need to clean up the text from tag if the value is true. 

Example:

PHP: 



Was this answer helpful? 14 Users Found This Useful (14 Votes)