HTML_Rule (object)¶
HTML Rule with configurable options
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
class* | string | “HTML_Rule” | ||
label | string | “^[^x00-x1fx22#&*<>?x5b-x5d`x7f]*$” | Optional friendly name for this object. Allows 0-64 chars, excluding a few likely to cause trouble with string searching, JS, TCL, or HTML | |
remark | string | “^[^x00-x1fx22x5cx7f]*$” | Arbitrary (brief) text pertaining to this object. Allows 0-64 chars, excluding only control characters, double-quote, and backslash. This is permissive enough that you should worry about XSS attacks | |
ruleType* | string | “comment-raise-event”, “comment-remove”, “tag-append-html”, “tag-prepend-html”, “tag-raise-event”, “tag-remove”, “tag-remove-attribute” | Type of rule |
HTML_Rule_Match_Attribute_Optional (object)¶
Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are optional.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
match* | object | Properties the rule is to match |
HTML_Rule_Match_Attribute_Optional.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName | string | Name of attribute | ||
attributeValue | string | Value of attribute | ||
tagName* | string | Name of tag |
HTML_Rule_Match_Attribute_Required (object)¶
Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are required.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
match* | object | Properties the rule is to match |
HTML_Rule_Match_Attribute_Required.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName* | string | Name of attribute | ||
attributeValue* | string | Value of attribute | ||
tagName* | string | Name of tag |
HTML_Rule_TagAppendHTML (object)¶
Matches on the specified tag name and optional attribute name and attribute value, and then appends the specified HTML content to the tag delimiter. Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are optional.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
content* | string | HTML content to append to tag delimiter | ||
match* | object | Properties the rule is to match |
HTML_Rule_TagAppendHTML.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName | string | Name of attribute | ||
attributeValue | string | Value of attribute | ||
tagName* | string | Name of tag |
HTML_Rule_TagPrependHTML (object)¶
Matches on the specified tag name and optional attribute name and attribute value, and then prepends the specified HTML content to the tag delimiter. Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are optional.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
content* | string | HTML content to prepend to tag delimiter | ||
match* | object | Properties the rule is to match |
HTML_Rule_TagPrependHTML.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName | string | Name of attribute | ||
attributeValue | string | Value of attribute | ||
tagName* | string | Name of tag |
HTML_Rule_TagRaiseEvent (object)¶
Matches on the specified tag name and optional attribute name and attribute value, and then raises an event. Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are optional.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
match* | object | Properties the rule is to match |
HTML_Rule_TagRaiseEvent.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName | string | Name of attribute | ||
attributeValue | string | Value of attribute | ||
tagName* | string | Name of tag |
HTML_Rule_TagRemove (object)¶
Matches on the specified tag name and optional attribute name and attribute value, and then removes the tag. Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are optional.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
match* | object | Properties the rule is to match |
HTML_Rule_TagRemove.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName | string | Name of attribute | ||
attributeValue | string | Value of attribute | ||
tagName* | string | Name of tag |
HTML_Rule_TagRemoveAttribute (object)¶
Matches on the specified tag name, attribute name, and attribute value, and then removes a specified attribute. Tag name, attribute name, and value are required. Matches on the specified tag name, attribute name, and attribute value. Attribute name and value are required.
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName* | string | Name of the attribute to be removed | ||
match* | object | Properties the rule is to match |
HTML_Rule_TagRemoveAttribute.match (object)¶
Properties the rule is to match
Properties (* = required):
name | type(s) | default | allowed values | description |
---|---|---|---|---|
/*/ | ||||
attributeName* | string | Name of attribute | ||
attributeValue* | string | Value of attribute | ||
tagName* | string | Name of tag |