First install Termux
Then there are two options:
Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:
First install Termux
Then there are two options:
Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:
<?php | |
/** | |
* Clean HTML string removing all element attributes and elements which are | |
* not in the provided whitelist (but keeping their allowed children). | |
* | |
* @see https://github.com/alixaxel/phunction/blob/master/phunction/HTML.php | |
* @param string $html to clean | |
* @param array $whitelist | |
*/ | |
function clean_html($html, array $whitelist) |