Coder
class Coder
Methods
bool
checkConsistentHtml(string $html)
Determine whether an HTML snippet remains consistent (through an decode/encode loop).
string
recode(string $html)
Parse an HTML snippet and re-encode is as HTML.
string
encode(phpQueryObject $doc)
Encode a phpQueryObject as HTML.
cleanup($html)
No description
cleanupAttribute($matches)
No description
Details
at line 16
bool
checkConsistentHtml(string $html)
Determine whether an HTML snippet remains consistent (through an decode/encode loop).
Note: Variations in whitespace are permitted.
at line 41
string
recode(string $html)
Parse an HTML snippet and re-encode is as HTML.
This is useful for detecting cases where the parser or encoder have quirks/bugs.
at line 53
string
encode(phpQueryObject $doc)
Encode a phpQueryObject as HTML.