PHP 클래스 Proxy\Html

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

공개 메소드들

메소드 설명
extract_inner ( $selector, $html )
extract_outer ( $selector, $html )
remove ( $selector, $html )
remove_comments ( $html )
remove_scripts ( $html ) * $outputSource = preg_replace("/><\/(area|base|br|col|command|embed|hr|img|input|link|meta|param|source)>/", " />", $outputSource); $html = mb_eregi_replace("", '', $html); remove white space before closing tags $html = mb_eregi_replace("'\s+>", "'>", $html); $html = mb_eregi_replace('"\s+>', '">', $html);
remove_styles ( $html )
replace_inner ( $selector, $replace, $html, &$matches = NULL )
replace_outer ( $selector, $replace, $html, &$matches = NULL )

비공개 메소드들

메소드 설명
extract ( $selector, $html, $inner = false )
find ( $selector, $html, $start_from )
replace ( $selector, $replace, $html, $replace_inner = false, &$matches = NULL )

메소드 상세

extract_inner() 공개 정적인 메소드

public static extract_inner ( $selector, $html )

extract_outer() 공개 정적인 메소드

public static extract_outer ( $selector, $html )

remove() 공개 정적인 메소드

public static remove ( $selector, $html )

remove_comments() 공개 정적인 메소드

public static remove_comments ( $html )

remove_scripts() 공개 정적인 메소드

* $outputSource = preg_replace("/><\/(area|base|br|col|command|embed|hr|img|input|link|meta|param|source)>/", " />", $outputSource); $html = mb_eregi_replace("", '', $html); remove white space before closing tags $html = mb_eregi_replace("'\s+>", "'>", $html); $html = mb_eregi_replace('"\s+>', '">', $html);
public static remove_scripts ( $html )

remove_styles() 공개 정적인 메소드

public static remove_styles ( $html )

replace_inner() 공개 정적인 메소드

public static replace_inner ( $selector, $replace, $html, &$matches = NULL )

replace_outer() 공개 정적인 메소드

public static replace_outer ( $selector, $replace, $html, &$matches = NULL )