HTMLPurifier defangs arbitrary submitted HTML. We're using it in the OStatus plugin, but it may be valuable for other parts of the codebase (I think OEmbed might benefit, for example).
18 lines
282 B
PHP
18 lines
282 B
PHP
<?php
|
|
|
|
abstract class HTMLPurifier_AttrDef_URI_Email extends HTMLPurifier_AttrDef
|
|
{
|
|
|
|
/**
|
|
* Unpacks a mailbox into its display-name and address
|
|
*/
|
|
function unpack($string) {
|
|
// needs to be implemented
|
|
}
|
|
|
|
}
|
|
|
|
// sub-implementations
|
|
|
|
// vim: et sw=4 sts=4
|