Regular expression describing which tags are banned for data entry Default: Only works if htmlLens is set for that column. Otherwise all tags are converted by htmlspecialchars() to their html entities. Uses Perl compatible regular expressions.
Note: since phpLens 3.0, we no longer ban table, th, td. tr tags by default. This is because the new htmlEditLens allows HTML tables to be created.Syntax
$lens->bannedTags = Regular Expression String;
Let's dissect the beginning of the default search:
'/<\/*((SCRIPT)|(META)|(DIV)|(.../i
All Perl compatible regular expressions begin and end with /, so just ignore them.
First we search for < which is the beginning of a tag.
Then we search for an optional slash (/) using \/*.
Next we check for tags (which are separated by the |, which is the OR-operator) such as SCRIPT or META or DIV etc.
The /i at the end means that the regular expression search is case-insensitive. Basic:Yes Advanced/Enterprise:Yes DynamicEdit:Yes [Version 1.0]
|