메소드 | 설명 | |
---|---|---|
createDomFragment ( DOMDocument $dom, string $markup ) : DOMNode | Helper function to create a DOM fragment with given markup. | |
createUUID ( integer $bookVersion = 4, string $url = null ) : string | Generates an UUID. | |
decodeHtmlEntities ( string $string ) : string | Remove all non essential html tags and entities. | |
encodeHtml ( string $string ) : string | Encode html code to use html entities, safeguarding it from potential character encoding problems This function is a bit different from the vanilla htmlentities function in that it does not encode html tags. | |
fixEncoding ( string $in_str ) : string | Ensure the encoded string is a valid UTF-8 string. | |
html2text ( string $string ) : string | Simply remove all HTML tags, brute force and no finesse. | |
removeComments ( $doc ) : string |
public static createDomFragment ( DOMDocument $dom, string $markup ) : DOMNode | ||
$dom | DOMDocument | |
$markup | string | |
리턴 | DOMNode | fragment in a node. |
public static decodeHtmlEntities ( string $string ) : string | ||
$string | string | |
리턴 | string | with the stripped entities. |
public static encodeHtml ( string $string ) : string | ||
$string | string | string to encode. |
리턴 | string |
public static fixEncoding ( string $in_str ) : string | ||
$in_str | string | |
리턴 | string | converted string. |