nxs_snapCleanHTML

The NextScripts: Social Networks Auto-Poster nxs snapCleanHTML function.

Description

nxs_snapCleanHTML( $html ); 

Parameters (1)

0. $html
The html.

Usage

  1. if ( !function_exists( 'nxs_snapCleanHTML' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'nextscripts-social-networks-auto-poster/nxs_functions.php'; 
  3.  
  4. // The html. 
  5. $html = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nxs_snapCleanHTML($html); 
  9.  

Defined (1)

The function is defined in the following location(s).

/nxs_functions.php  
  1. if (!function_exists('nxs_snapCleanHTML')) { function nxs_snapCleanHTML($html) {  
  2. $html = preg_replace('/<script\b[^>]*>(.*?)<\/script>/is', "", $html); $html = preg_replace('/<!--(.*)-->/Uis', "", $html); return $html; 
  3. }}