Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /proc/thread-self/cwd/wp-content/plugins/elementor-pro/core/app/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/cwd/wp-content/plugins/elementor-pro/core/app/assets/js/utils.js
// Copied from Core.
export const arrayToClassName = ( array, action ) => {
	return array
		.filter( ( item ) => 'object' === typeof ( item ) ? Object.entries( item )[ 0 ][ 1 ] : item )
		.map( ( item ) => {
			const value = 'object' === typeof ( item ) ? Object.entries( item )[ 0 ][ 0 ] : item;

			return action ? action( value ) : value;
		} )
		.join( ' ' );
};

export const htmlDecodeTextContent = ( input ) => {
	const doc = new DOMParser().parseFromString( input, 'text/html' );
	return doc.documentElement.textContent;
};

export const replaceUtmPlaceholders = ( link = '', utms = {} ) => {
	if ( ! link || ! utms ) {
		return link;
	}

	Object.keys( utms ).forEach( ( key ) => {
		const match = new RegExp( `%%${ key }%%`, 'g' );
		link = link.replace( match, utms[ key ] );
	} );

	return link;
};

Spamworldpro Mini