PHP 클래스 Habari\InputFilter

파일 보기 프로젝트 열기: habari/system

공개 메소드들

메소드 설명
__static ( )
_validate_entity ( array $m ) Callback function for strip_illegal_entities, do not use.
filter ( string $str ) : string Perform all filtering, return new string.
filter_html_elements ( $str )
glue_url ( $parsed_url ) Restore a URL separated by a parse_url() call.
parse_url ( $url ) This really doesn't belong here. It should also be done much better. This is a nasty, NASTY kludge.
strip_illegal_entities ( string $str ) : string Remove illegal entities, return new string.
strip_nulls ( string $str ) : string Remove nulls, return new string.

비공개 메소드들

메소드 설명
check_attr_value ( $k, $v, $type )

메소드 상세

__static() 공개 정적인 메소드

public static __static ( )

_validate_entity() 공개 정적인 메소드

Callback function for strip_illegal_entities, do not use.
public static _validate_entity ( array $m )
$m array matches

filter() 공개 정적인 메소드

Perform all filtering, return new string.
public static filter ( string $str ) : string
$str string Input string.
리턴 string Filtered output string.

filter_html_elements() 공개 정적인 메소드

public static filter_html_elements ( $str )

glue_url() 공개 정적인 메소드

Restore a URL separated by a parse_url() call.
public static glue_url ( $parsed_url )
$parsed_url array An array as returned by parse_url()

parse_url() 공개 정적인 메소드

This really doesn't belong here. It should also be done much better. This is a nasty, NASTY kludge.
public static parse_url ( $url )

strip_illegal_entities() 공개 정적인 메소드

Remove illegal entities, return new string.
public static strip_illegal_entities ( string $str ) : string
$str string Input string.
리턴 string Filtered output string.

strip_nulls() 공개 정적인 메소드

Remove nulls, return new string.
public static strip_nulls ( string $str ) : string
$str string Input string.
리턴 string Filtered output string.