fixed missing 'strike' tag and fixed tag recognition
This commit is contained in:
@@ -436,7 +436,7 @@ p.wl_notopbottom {
|
|||||||
'acronym', 'cite', 'code', 'dfn', 'em', 'kbd', 'strong',
|
'acronym', 'cite', 'code', 'dfn', 'em', 'kbd', 'strong',
|
||||||
'samp', 'var', 'a', 'bdo', 'bdi', 'map', 'object',
|
'samp', 'var', 'a', 'bdo', 'bdi', 'map', 'object',
|
||||||
'q', 'script', 'span', 'sub', 'sup', 'button',
|
'q', 'script', 'span', 'sub', 'sup', 'button',
|
||||||
'label', 'select', 'textarea', 's'
|
'label', 'select', 'textarea', 's', 'strike'
|
||||||
);
|
);
|
||||||
|
|
||||||
var $allowed_p_parents = array('blockquote', 'td', 'div', 'article', 'aside', 'dd',
|
var $allowed_p_parents = array('blockquote', 'td', 'div', 'article', 'aside', 'dd',
|
||||||
@@ -542,9 +542,16 @@ p.wl_notopbottom {
|
|||||||
{
|
{
|
||||||
// unknown tag definition
|
// unknown tag definition
|
||||||
$text[$tagstart_b] = '<';
|
$text[$tagstart_b] = '<';
|
||||||
$text[strpos($textstring,'>',$i)] = '>';
|
$tagstart = false;
|
||||||
|
$tagdef = false;
|
||||||
|
if ( $text[$i] == '>' ) { $text[$i] = '>'; }
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
//convert to lowercase
|
||||||
|
for ($j = $tagdef; $j <= $i; $j++)
|
||||||
|
{
|
||||||
|
$text[$j] = strtolower($text[$j]);
|
||||||
|
}
|
||||||
$tagdef = false;
|
$tagdef = false;
|
||||||
// closing >
|
// closing >
|
||||||
if ($text[$i] == '>')
|
if ($text[$i] == '>')
|
||||||
@@ -583,11 +590,7 @@ p.wl_notopbottom {
|
|||||||
$tagdef = $i;
|
$tagdef = $i;
|
||||||
$tagstart_b = $tagstart;
|
$tagstart_b = $tagstart;
|
||||||
$tagstart = false;
|
$tagstart = false;
|
||||||
$text[$i] = strtolower($text[$i]);
|
|
||||||
}
|
}
|
||||||
// definition characters
|
|
||||||
elseif ($tagdef)
|
|
||||||
{ $text[$i] = strtolower($text[$i]); }
|
|
||||||
// quotes in style - isolate
|
// quotes in style - isolate
|
||||||
elseif ($tagstyle && $text[$i] == '\'' && !$doublequote )
|
elseif ($tagstyle && $text[$i] == '\'' && !$doublequote )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user