PHP 클래스 HtmlDiff, php-htmldiff

파일 보기 프로젝트 열기: rashid2538/php-htmldiff 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $oldText, $newText, $encoding = 'UTF-8' )
build ( )
getDifference ( )
getNewHtml ( )
getOldHtml ( )

비공개 메소드들

메소드 설명
ConvertHtmlToListOfWords ( $characterString )
Explode ( $value )
ExtractConsecutiveWords ( &$words, $condition )
FindMatch ( $startInOld, $endInOld, $startInNew, $endInNew )
FindMatchingBlocks ( $startInOld, $endInOld, $startInNew, $endInNew, &$matchingBlocks )
IndexNewWords ( )
InsertTag ( $tag, $cssClass, &$words )
IsAlphaNum ( $value )
IsClosingTag ( $item )
IsEndOfTag ( $val )
IsOpeningTag ( $item )
IsStartOfTag ( $val )
IsTag ( $item )
IsWhiteSpace ( $value )
MatchingBlocks ( )
Operations ( )
PerformOperation ( $operation )
ProcessDeleteOperation ( $operation, $cssClass )
ProcessEqualOperation ( $operation )
ProcessInsertOperation ( $operation, $cssClass )
ProcessReplaceOperation ( $operation )
SplitInputsToWords ( )
StripTagAttributes ( $word )
WrapText ( $text, $tagName, $cssClass )
checkCondition ( $word, $condition )
getStringBetween ( $str, $start, $end )
purifyHtml ( $html, $tags = null )

메소드 상세

__construct() 공개 메소드

public __construct ( $oldText, $newText, $encoding = 'UTF-8' )

build() 공개 메소드

public build ( )

getDifference() 공개 메소드

public getDifference ( )

getNewHtml() 공개 메소드

public getNewHtml ( )

getOldHtml() 공개 메소드

public getOldHtml ( )