3 $Context->SetDefinition('JQE', '(X)HTML');
5 //Secure xhtml tags and attribue. Might need to add some control on the value
6 $JQE_allowed_tags = array( 'a' => array('accesskey' => 1, 'class' => 1, 'href' => array('maxlen' => 100), 'tabindex' => 1, 'title' => 1, 'target' => 1),
7 'abbr' => array('class' => 1 , 'title' => 1),
8 'acronym' => array('class' => 1 , 'title' => 1),
9 'address' => array('class' => 1, 'title' => 1),
10 'b' => array('class' => 1, 'title' => 1),
11 'big' => array('class' => 1, 'title' => 1),
12 'blockquote' => array('cite' => 1, 'class' => 1, 'title' => 1),
13 'br' => array('class' => 1, 'title' => 1),
14 'cite' => array('class' => 1, 'lang' => 1, 'title' => 1),
15 'code' => array('class' => 1, 'title' => 1),
16 'dd' => array('class' => 1, 'title' => 1),
17 'dfn' => array('class' => 1, 'lang' => 1, 'title' => 1),
18 'div' => array('align' => 1, 'class' => 1 , 'title' => 1),
19 'dl' => array('class' => 1, 'compact' => array('valueless' => 'y'), 'lang' => 1, 'title' => 1),
20 'dt' => array('class' => 1, 'lang' => 1, 'title' => 1),
21 'em' => array('class' => 1, 'title' => 1),
22 'embed' => array('id' => 1,'width' => 1, 'height' => 1, 'src' => 1, 'type' => 1, 'wmode' => 1),
23 'fieldset' => array('class' => 1, 'lang' => 1, 'title' => 1),
24 'font' => array('class' => 1, 'color' => 1, 'face' => 1, 'title' => 1, 'size' => 1),
25 'h1' => array('align' => 1, 'class' => 1, 'title' => 1),
26 'h2' => array('align' => 1, 'class' => 1, 'title' => 1),
27 'h3' => array('align' => 1, 'class' => 1, 'title' => 1),
28 'h4' => array('align' => 1, 'class' => 1, 'title' => 1),
29 'h5' => array('align' => 1, 'class' => 1, 'title' => 1),
30 'h6' => array('align' => 1, 'class' => 1, 'title' => 1),
31 'hr' => array('align' => 1, 'class' => 1, 'title' => 1, 'size' => 1, 'width' => 1),
32 'i' => array('class' => 1, 'title' => 1),
33 'img' => array('align' => 1, 'alt' => 1, 'height' => 1, 'src' => 1, 'title' => 1, 'width'),
34 'legend' => array('accesskey' => 1, 'align' => 1, 'class' => 1, 'lang' => 1, 'title' => 1),
35 'li' => array('class' => 1, 'title' => 1, 'type' => 1),
36 'ol' => array('class' => 1, 'compact' => array('valueless' => 'y'), 'start' => 1, 'title' => 1, 'type' => 1),
37 // 'object' => array('width' => 1, 'height' => 1),
38 'p' => array('align' => 1, 'class' => 1, 'title' => 1),
39 // 'param' => array('name' => 1, 'value' => 1),
40 'pre' => array('class' => 1, 'title' => 1),
41 'q' => array('cite' => 1, 'class' => 1, 'title' => 1),
42 's' => array('class' => 1, 'title' => 1),
43 'small' => array('class' => 1, 'title' => 1),
44 'span' => array('align' => 1, 'class' => 1, 'title' => 1),
45 'strike' => array('class' => 1, 'title' => 1),
46 'strong' => array('class' => 1, 'title' => 1),
47 'sub' => array('class' => 1, 'title' => 1),
48 'sup' => array('class' => 1, 'title' => 1),
49 'table' => array('class' => 1, 'width' => 1),
50 'tr' => array('class' => 1, 'width' => 1),
51 'td' => array('class' => 1, 'width' => 1),
52 'u' => array('class' => 1, 'title' => 1),
53 'ul' => array('class' => 1, 'compact' => array('valueless' => 'y'), 'title' => 1, 'type' => 1),
54 'var' => array('class' => 1, 'title' => 1)
57 $JQE_allowed_protocols = array('http',