Overview

Namespaces

  • DataTables
    • Database
    • Editor
    • Vendor

Classes

  • Htmlaw
  • htmLawed
  • Overview
  • Namespace
  • Class

Class Htmlaw

A class wrapper for the htmLawed library.

Namespace: DataTables\Vendor
Located at Vendor/Htmlaw.php
Methods summary
public static string
# filter( string $html, array $config = null, string|array|null $spec = null )

Filters a string of html with the htmLawed library.

Filters a string of html with the htmLawed library.

Parameters

$html
The text to filter.
$config
Config settings for the array.
$spec
A specification to further limit the allowed attribute values in the html.

Returns

string
Returns the filtered html.

See

http://www.bioinformatics.org/phplabware/internal_utilities/htmLawed/htmLawed_README.htm
public static string
# filterRSS( $html )

Filter a string of html so that it can be put into an rss feed.

Filter a string of html so that it can be put into an rss feed.

Parameters

$html
html text to fitlter.

Returns

string
Returns the filtered html.

See

Htmlawed::filter().
Properties summary
public static array $defaultConfig
# array( 'anti_link_spam' => array('`.`', ''), 'comment' => 1, 'cdata' => 3, 'css_expression' => 1, 'deny_attribute' => 'on*', 'unique_ids' => 0, 'elements' => '*-applet-form-input-textarea-iframe-script-style-embed-object', 'keep_bad' => 1, 'schemes' => 'classid:clsid; href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; style: nil; *:file, http, https', // clsid allowed in class 'valid_xhtml' => 0, 'direct_list_nest' => 1, 'balance' => 1 )
public static array $defaultSpec
# array( 'object=-classid-type, -codebase', 'embed=type(oneof=application/x-shockwave-flash)' )
DataTables Editor 1.9.4 - PHP libraries API documentation generated by ApiGen