$cF=array('button'=>1,'del'=>1,'div'=>1,'dd'=>1,'fieldset'=>1,'iframe'=>1,'ins'=>1,'li'=>1,'noscript'=>1,'object'=>1,'td'=>1,'th'=>1);// Flow; later context-wise dynamic move of ins & del to $cI
$cF=array('a'=>1,'article'=>1,'aside'=>1,'audio'=>1,'button'=>1,'canvas'=>1,'del'=>1,'details'=>1,'div'=>1,'dd'=>1,'fieldset'=>1,'figure'=>1,'footer'=>1,'header'=>1,'iframe'=>1,'ins'=>1,'li'=>1,'main'=>1,'menu'=>1,'nav'=>1,'noscript'=>1,'object'=>1,'section'=>1,'style'=>1,'td'=>1,'th'=>1,'video'=>1);// Flow; later context-wise dynamic move of ins & del to $cI
$cS=array('colgroup'=>array('col'=>1),'dir'=>array('li'=>1),'dl'=>array('dd'=>1,'dt'=>1),'menu'=>array('li'=>1),'ol'=>array('li'=>1),'optgroup'=>array('option'=>1),'option'=>array('#pcdata'=>1),'rbc'=>array('rb'=>1),'rp'=>array('#pcdata'=>1),'rtc'=>array('rt'=>1),'ruby'=>array('rb'=>1,'rbc'=>1,'rp'=>1,'rt'=>1,'rtc'=>1),'select'=>array('optgroup'=>1,'option'=>1),'script'=>array('#pcdata'=>1),'table'=>array('caption'=>1,'col'=>1,'colgroup'=>1,'tfoot'=>1,'tbody'=>1,'tr'=>1,'thead'=>1),'tbody'=>array('tr'=>1),'tfoot'=>array('tr'=>1),'textarea'=>array('#pcdata'=>1),'thead'=>array('tr'=>1),'tr'=>array('td'=>1,'th'=>1),'ul'=>array('li'=>1));// Specific - immediate parent-child
$cO=array('address'=>array('p'=>1),'applet'=>array('param'=>1),'blockquote'=>array('script'=>1),'fieldset'=>array('legend'=>1,'#pcdata'=>1),'form'=>array('script'=>1),'map'=>array('area'=>1),'object'=>array('param'=>1,'embed'=>1));// Other
$cS=array('colgroup'=>array('col'=>1),'datalist'=>array('option'=>1),'dir'=>array('li'=>1),'dl'=>array('dd'=>1,'dt'=>1),'hgroup'=>array('h1'=>1,'h2'=>1,'h3'=>1,'h4'=>1,'h5'=>1,'h6'=>1),'menu'=>array('li'=>1),'ol'=>array('li'=>1),'optgroup'=>array('option'=>1),'option'=>array('#pcdata'=>1),'rbc'=>array('rb'=>1),'rp'=>array('#pcdata'=>1),'rtc'=>array('rt'=>1),'ruby'=>array('rb'=>1,'rbc'=>1,'rp'=>1,'rt'=>1,'rtc'=>1),'select'=>array('optgroup'=>1,'option'=>1),'script'=>array('#pcdata'=>1),'table'=>array('caption'=>1,'col'=>1,'colgroup'=>1,'tfoot'=>1,'tbody'=>1,'tr'=>1,'thead'=>1),'tbody'=>array('tr'=>1),'tfoot'=>array('tr'=>1),'textarea'=>array('#pcdata'=>1),'thead'=>array('tr'=>1),'tr'=>array('td'=>1,'th'=>1),'ul'=>array('li'=>1));// Specific - immediate parent-child
$cO=array('address'=>array('p'=>1),'applet'=>array('param'=>1),'audio'=>array('source'=>1,'track'=>1),'blockquote'=>array('script'=>1),'details'=>array('summary'=>1),'fieldset'=>array('legend'=>1,'#pcdata'=>1),'figure'=>array('figcaption'=>1),'form'=>array('script'=>1),'map'=>array('area'=>1),'object'=>array('param'=>1,'embed'=>1),'video'=>array('source'=>1,'track'=>1));// Other
$eN=array('a'=>1,'big'=>1,'button'=>1,'fieldset'=>1,'font'=>1,'form'=>1,'iframe'=>1,'img'=>1,'input'=>1,'label'=>1,'object'=>1,'ruby'=>1,'script'=>1,'select'=>1,'small'=>1,'sub'=>1,'sup'=>1,'textarea'=>1);// Exclude from specific ele; $cN values
$eO=array('area'=>1,'caption'=>1,'col'=>1,'colgroup'=>1,'dd'=>1,'dt'=>1,'legend'=>1,'li'=>1,'optgroup'=>1,'option'=>1,'param'=>1,'rb'=>1,'rbc'=>1,'rp'=>1,'rt'=>1,'rtc'=>1,'script'=>1,'tbody'=>1,'td'=>1,'tfoot'=>1,'thead'=>1,'th'=>1,'tr'=>1);// Missing in $eB & $eI
// block/inline type; a/ins/del both type; #pcdata: text
$eN=array('a'=>1,'address'=>1,'article'=>1,'aside'=>1,'big'=>1,'button'=>1,'details'=>1,'embed'=>1,'fieldset'=>1,'font'=>1,'footer'=>1,'form'=>1,'header'=>1,'iframe'=>1,'img'=>1,'input'=>1,'keygen'=>1,'label'=>1,'meter'=>1,'nav'=>1,'object'=>1,'progress'=>1,'ruby'=>1,'script'=>1,'select'=>1,'small'=>1,'sub'=>1,'sup'=>1,'textarea'=>1,'time'=>1);// Exclude from specific ele; $cN values
$eO=array('area'=>1,'caption'=>1,'col'=>1,'colgroup'=>1,'command'=>1,'dd'=>1,'dt'=>1,'hgroup'=>1,'keygen'=>1,'legend'=>1,'li'=>1,'optgroup'=>1,'option'=>1,'param'=>1,'rb'=>1,'rbc'=>1,'rp'=>1,'rt'=>1,'rtc'=>1,'script'=>1,'source'=>1,'tbody'=>1,'td'=>1,'tfoot'=>1,'thead'=>1,'th'=>1,'tr'=>1,'track'=>1);// Missing in $eB & $eI
static$eE=array('area'=>1,'br'=>1,'col'=>1,'embed'=>1,'hr'=>1,'img'=>1,'input'=>1,'isindex'=>1,'param'=>1);// Empty ele
static$eE=array('area'=>1,'br'=>1,'col'=>1,'command'=>1,'embed'=>1,'hr'=>1,'img'=>1,'input'=>1,'isindex'=>1,'keygen'=>1,'link'=>1,'meta'=>1,'param'=>1,'source'=>1,'track'=>1,'wbr'=>1);// Empty ele
$v=str_replace("",' ',(strpos($v,'&')!==false?str_replace(array('­','­','­'),' ',$v):$v));# double-quoted char is soft-hyphen; appears here as "" or hyphen or something else depending on viewing software
$v=hl_prot($v,$k);
}elseif(isset($aNP[$k])orisset($aNO[$k])){
$v=str_replace("",' ',(strpos($v,'&')!==false?str_replace(array('­','­','­'),' ',$v):$v));# double-quoted char: soft-hyphen; appears here as "" or hyphen or something else depending on viewing software