MediaWiki  master
RemexStripTagHandler Class Reference
Inheritance diagram for RemexStripTagHandler:
Collaboration diagram for RemexStripTagHandler:

Public Member Functions

 characters ( $text, $start, $length, $sourceStart, $sourceLength)
 
 endTag ( $name, $sourceStart, $sourceLength)
 
 getResult ()
 
 startTag ( $name, Attributes $attrs, $selfClose, $sourceStart, $sourceLength)
 

Private Member Functions

 isBlockLevelTag ( $tagName)
 Detect block level tags. More...
 

Private Attributes

 $text = ''
 
const BLOCK_LEVEL_TAGS
 

Detailed Description

Definition at line 9 of file RemexStripTagHandler.php.

Member Function Documentation

◆ characters()

RemexStripTagHandler::characters (   $text,
  $start,
  $length,
  $sourceStart,
  $sourceLength 
)

Definition at line 16 of file RemexStripTagHandler.php.

References $text.

◆ endTag()

RemexStripTagHandler::endTag (   $name,
  $sourceStart,
  $sourceLength 
)

Definition at line 28 of file RemexStripTagHandler.php.

References isBlockLevelTag().

◆ getResult()

RemexStripTagHandler::getResult ( )

Definition at line 12 of file RemexStripTagHandler.php.

References $text.

◆ isBlockLevelTag()

RemexStripTagHandler::isBlockLevelTag (   $tagName)
private

Detect block level tags.

Of course css can make anything a block level tag, but this is still better than nothing.

Parameters
string$tagNameHTML tag name
Returns
bool True when tag is an html block level element

Definition at line 92 of file RemexStripTagHandler.php.

Referenced by endTag(), and startTag().

◆ startTag()

RemexStripTagHandler::startTag (   $name,
Attributes  $attrs,
  $selfClose,
  $sourceStart,
  $sourceLength 
)

Definition at line 20 of file RemexStripTagHandler.php.

References isBlockLevelTag().

Member Data Documentation

◆ $text

RemexStripTagHandler::$text = ''
private

Definition at line 10 of file RemexStripTagHandler.php.

Referenced by characters(), and getResult().

◆ BLOCK_LEVEL_TAGS

const RemexStripTagHandler::BLOCK_LEVEL_TAGS
private

Definition at line 42 of file RemexStripTagHandler.php.


The documentation for this class was generated from the following file: