forked from b2evolution/b2evolution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_formatting.php
More file actions
172 lines (158 loc) · 9.06 KB
/
_formatting.php
File metadata and controls
172 lines (158 loc) · 9.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
/**
* This is b2evolution's formatting config file.
*
* This file sets how b2evolution will parse and format texts (posts, comments, etc.)
* Last significant changes to this file: version 1.6
*
* @todo Move as much as possible to $Settings / $UserSettings
* @package conf
*/
if( !defined('EVO_CONFIG_LOADED') ) die( 'Please, do not access this page directly.' );
/**
* Automatically balance unmatched tags in posts and comments.
*
* Choose the formatting options for your posts:
* 0 to disable
* 1 to ensable
*
* @todo fp>This should be moved to the backoffice. Checkbox in group settings?
*
* @global integer 0|1
*/
$use_balanceTags = 1;
/*
* Disabling XHTML checking for posts is now a Group permission in b2evo's user management
*/
/**
* Set this to true if you want to enforce XHTML strict
*
* @todo fp> Should probably be an additional radio option in group permissions.
*/
$use_strict = false;
/**
* Do we want to use XHTML validation for comments?
*
* TODO: use this for anonymous comments only.
*/
$use_xhtmlvalidation_for_comments = true;
/**
* set this to true to allow id && style as core attributes for comments
* WARNING : This would allow spammers to post hidden content in comments
* enable it at your own risk !
*/
$comments_allow_css_tweaks = false;
/**
* DEPRECATED!!!
*
* here is a list of the tags that are allowed in the comments.
* If XHTML validation is disabled all tags not in this list will be filtered out anyway before we do any checking
* @deprecated
*/
$comment_allowed_tags = '<p><ul><ol><li><dl><dt><dd><address><blockquote><ins><del><span><bdo><br><em><strong><dfn><code><samp><kdb><var><cite><abbr><acronym><q><sub><sup><tt><i><b><big><small>';
/**
* Translation of HTML entities and special characters.
*
* You should not have to change this.
*
* @global array
*/
$b2_htmltrans = array(
// '–' => ' ', '—' => ' ', '‘' => ' ', '’' => ' ',
// '“' => ' ', '”' => ' ', '•' => ' ', '€' => ' ',
'<' => '<', '>' => '>',
'&sp;' => ' ', '!' => '!', '"' => '"', '#' => '#',
'$' => '$', '%' => '%', '&' => '&', ''' => ''',
'(' => '(', ')' => ')',
'*' => '*', '+' => '+', ',' => ',', '‐' => '-',
'−' => '-', '.' => '.', '/' => '/', ':' => ':',
';' => ';', '<' => '<',
'=' => '=', '>' => '>', '?' => '?', '@' => '@',
'[' => '[', '\' => '\', ']' => ']', 'ˆ' => '^',
'_' => '_', '―' => '_',
'`' => '`', '{' => '{', '|' => '|', '}' => '}',
'˜' => '~', '‚' => '‚', '„' => '„',
'&ldots;' => '…', 'Š' => 'Š', '‹' => '‹', 'Œ' => 'Œ',
'‘' => '‘', '’' => '‘', '’' => '’',
'“' => '“', '”' => '“', '”' => '”', '•' => '•',
'–' => '–', '&endash;' => '–', '—' => '—', '&emdash;' => '—',
'˜' => '˜', '™' => '™',
'š' => 'š', '›' => '›', 'œ' => 'œ', 'Ÿ' => 'Ÿ',
' ' => ' ', '¡' => '¡', '¢' => '¢', '£' => '£',
'¤' => '¤', '¥' => '¥',
'¦' => '¦', '&brkbar;' => '¦', '§' => '§', '¨' => '¨',
'¨' => '¨', '©' => '©', 'ª' => 'ª', '«' => '«',
'¬' => '¬', '­' => '­',
'®' => '®', '¯' => '¯', '&hibar;' => '¯', '°' => '°',
'±' => '±', '²' => '²', '³' => '³', '´' => '´',
'µ' => 'µ', '¶' => '¶',
'·' => '·', '¸' => '¸', '¹' => '¹', 'º' => 'º',
'»' => '»', '¼' => '¼', '½' => '½', '½' => '½',
'¾' => '¾', '¿' => '¿',
'À' => 'À', 'Á' => 'Á', 'Â' => 'Â', 'Ã' => 'Ã',
'Ä' => 'Ä', 'Å' => 'Å', 'Æ' => 'Æ', 'Ç' => 'Ç',
'È' => 'È', 'É' => 'É',
'Ê' => 'Ê', 'Ë' => 'Ë', 'Ì' => 'Ì', 'Í' => 'Í',
'Î' => 'Î', 'Ï' => 'Ï', 'Ð' => 'Ð', 'Ñ' => 'Ñ',
'Ò' => 'Ò', 'Ó' => 'Ó',
'Ô' => 'Ô', 'Õ' => 'Õ', 'Ö' => 'Ö', '×' => '×',
'Ø' => 'Ø', 'Ù' => 'Ù', 'Ú' => 'Ú', 'Û' => 'Û',
'Ü' => 'Ü', 'Ý' => 'Ý',
'Þ' => 'Þ', 'ß' => 'ß', 'à' => 'à', 'á' => 'á',
'â' => 'â', 'ã' => 'ã', 'ä' => 'ä', 'å' => 'å',
'æ' => 'æ', 'ç' => 'ç',
'è' => 'è', 'é' => 'é', 'ê' => 'ê', 'ë' => 'ë',
'ì' => 'ì', 'í' => 'í', 'î' => 'î', 'ï' => 'ï',
'ð' => 'ð', 'ñ' => 'ñ',
'ò' => 'ò', 'ó' => 'ó', 'ô' => 'ô', 'õ' => 'õ',
'ö' => 'ö', '÷' => '÷', 'ø' => 'ø', 'ù' => 'ù',
'ú' => 'ú', 'û' => 'û',
'ü' => 'ü', 'ý' => 'ý', 'þ' => 'þ', 'ÿ' => 'ÿ',
'Œ' => 'Œ', 'œ' => 'œ', 'Š' => 'Š', 'š' => 'š',
'Ÿ' => 'Ÿ', 'ƒ' => 'ƒ',
'ˆ' => 'ˆ', '˜' => '˜', 'Α' => 'Α', 'Β' => 'Β',
'Γ' => 'Γ', 'Δ' => 'Δ', 'Ε' => 'Ε', 'Ζ' => 'Ζ',
'Η' => 'Η', 'Θ' => 'Θ',
'Ι' => 'Ι', 'Κ' => 'Κ', 'Λ' => 'Λ',
'Μ' => 'Μ', 'Ν' => 'Ν', 'Ξ' => 'Ξ',
'Ο' => 'Ο', 'Π' => 'Π', 'Ρ' => 'Ρ', 'Σ' => 'Σ',
'Τ' => 'Τ', 'Υ' => 'Υ', 'Φ' => 'Φ',
'Χ' => 'Χ', 'Ψ' => 'Ψ', 'Ω' => 'Ω',
'α' => 'α', 'β' => 'β', 'γ' => 'γ', 'δ' => 'δ',
'ε' => 'ε', 'ζ' => 'ζ', 'η' => 'η',
'θ' => 'θ', 'ι' => 'ι', 'κ' => 'κ', 'λ' => 'λ',
'μ' => 'μ', 'ν' => 'ν', 'ξ' => 'ξ',
'ο' => 'ο', 'π' => 'π', 'ρ' => 'ρ', 'ς' => 'ς',
'σ' => 'σ', 'τ' => 'τ', 'υ' => 'υ', 'φ' => 'φ',
'χ' => 'χ', 'ψ' => 'ψ',
'ω' => 'ω', 'ϑ' => 'ϑ', 'ϒ' => 'ϒ', 'ϖ' => 'ϖ',
' ' => ' ', ' ' => ' ', ' ' => ' ', '‌' => '‌',
'‍' => '‍', '‎' => '‎',
'‏' => '‏', '–' => '–', '—' => '—', '‘' => '‘',
'’' => '’', '‚' => '‚', '“' => '“', '”' => '”',
'„' => '„', '†' => '†',
'‡' => '‡', '•' => '•', '…' => '…', '‰' => '‰',
'′' => '′', '″' => '″', '‹' => '‹', '›' => '›',
'‾' => '‾', '⁄' => '⁄',
'€' => '€', 'ℑ' => 'ℑ', '℘' => '℘', 'ℜ' => 'ℜ',
'™' => '™', 'ℵ' => 'ℵ', '←' => '←', '↑' => '↑',
'→' => '→', '↓' => '↓',
'↔' => '↔', '↵' => '↵', '⇐' => '⇐', '⇑' => '⇑',
'⇒' => '⇒', '⇓' => '⇓', '⇔' => '⇔', '∀' => '∀',
'∂' => '∂', '∃' => '∃',
'∅' => '∅', '∇' => '∇', '∈' => '∈', '∉' => '∉',
'∋' => '∋', '∏' => '∏', '∑' => '∑', '−' => '−',
'∗' => '∗', '√' => '√',
'∝' => '∝', '∞' => '∞', '∠' => '∠', '∧' => '∧',
'∨' => '∨', '∩' => '∩', '∪' => '∪', '∫' => '∫',
'∴' => '∴', '∼' => '∼',
'≅' => '≅', '≈' => '≈', '≠' => '≠', '≡' => '≡',
'≤' => '≤', '≥' => '≥', '⊂' => '⊂', '⊃' => '⊃',
'⊄' => '⊄', '⊆' => '⊆',
'⊇' => '⊇', '⊕' => '⊕', '⊗' => '⊗', '⊥' => '⊥',
'⋅' => '⋅', '⌈' => '⌈', '⌉' => '⌉', '⌊' => '⌊',
'⌋' => '⌋', '⟨' => '〈',
'⟩' => '〉', '◊' => '◊', '♠' => '♠', '♣' => '♣',
'♥' => '♥', '♦' => '♦'
);
?>