removeformat.js (30684B)
1 // For documentation of the format, see README in this directory. 2 var browserTests = [ 3 ["foo[]bar", 4 [["removeformat",""]], 5 "foo[]bar", 6 [true], 7 {"removeformat":[false,false,"",false,false,""]}], 8 ["<span>foo</span>{}<span>bar</span>", 9 [["removeformat",""]], 10 "<span>foo</span>{}<span>bar</span>", 11 [true], 12 {"removeformat":[false,false,"",false,false,""]}], 13 ["<span>foo[</span><span>]bar</span>", 14 [["removeformat",""]], 15 "<span>foo[</span><span>]bar</span>", 16 [true], 17 {"removeformat":[false,false,"",false,false,""]}], 18 ["[foo<b>bar</b>baz]", 19 [["stylewithcss","true"],["removeformat",""]], 20 "[foobarbaz]", 21 [true,true], 22 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 23 ["[foo<b>bar</b>baz]", 24 [["stylewithcss","false"],["removeformat",""]], 25 "[foobarbaz]", 26 [true,true], 27 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 28 ["foo[<b>bar</b>baz]", 29 [["stylewithcss","true"],["removeformat",""]], 30 "foo[barbaz]", 31 [true,true], 32 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 33 ["foo[<b>bar</b>baz]", 34 [["stylewithcss","false"],["removeformat",""]], 35 "foo[barbaz]", 36 [true,true], 37 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 38 ["foo[<b>bar</b>]baz", 39 [["stylewithcss","true"],["removeformat",""]], 40 "foo[bar]baz", 41 [true,true], 42 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 43 ["foo[<b>bar</b>]baz", 44 [["stylewithcss","false"],["removeformat",""]], 45 "foo[bar]baz", 46 [true,true], 47 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 48 ["foo<b>[bar]</b>baz", 49 [["stylewithcss","true"],["removeformat",""]], 50 "foo[bar]baz", 51 [true,true], 52 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 53 ["foo<b>[bar]</b>baz", 54 [["stylewithcss","false"],["removeformat",""]], 55 "foo[bar]baz", 56 [true,true], 57 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 58 ["foo<b>b[a]r</b>baz", 59 [["stylewithcss","true"],["removeformat",""]], 60 "foo<b>b</b>[a]<b>r</b>baz", 61 [true,true], 62 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 63 ["foo<b>b[a]r</b>baz", 64 [["stylewithcss","false"],["removeformat",""]], 65 "foo<b>b</b>[a]<b>r</b>baz", 66 [true,true], 67 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 68 ["[foo<span style=\"font-weight: bold\">bar</span>baz]", 69 [["stylewithcss","true"],["removeformat",""]], 70 "[foobarbaz]", 71 [true,true], 72 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 73 ["[foo<span style=\"font-weight: bold\">bar</span>baz]", 74 [["stylewithcss","false"],["removeformat",""]], 75 "[foobarbaz]", 76 [true,true], 77 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 78 ["[foo<span style=\"display: none\">bar</span>baz]", 79 [["stylewithcss","true"],["removeformat",""]], 80 "[foobarbaz]", 81 [true,true], 82 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 83 ["[foo<span style=\"display: none\">bar</span>baz]", 84 [["stylewithcss","false"],["removeformat",""]], 85 "[foobarbaz]", 86 [true,true], 87 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 88 ["[foo<span style=\"display: none; font-weight: bold\">bar</span>baz]", 89 [["stylewithcss","true"],["removeformat",""]], 90 "[foobarbaz]", 91 [true,true], 92 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 93 ["[foo<span style=\"display: none; font-weight: bold\">bar</span>baz]", 94 [["stylewithcss","false"],["removeformat",""]], 95 "[foobarbaz]", 96 [true,true], 97 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 98 ["foo<span style=\"font-weight: bold\">b[a]r</span>baz", 99 [["stylewithcss","true"],["removeformat",""]], 100 "foo<span style=\"font-weight:bold\">b</span>[a]<span style=\"font-weight:bold\">r</span>baz", 101 [true,true], 102 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 103 ["foo<span style=\"font-weight: bold\">b[a]r</span>baz", 104 [["stylewithcss","false"],["removeformat",""]], 105 "foo<span style=\"font-weight:bold\">b</span>[a]<span style=\"font-weight:bold\">r</span>baz", 106 [true,true], 107 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 108 ["foo<span style=\"display: none\">b[a]r</span>baz", 109 [["stylewithcss","true"],["removeformat",""]], 110 "foo<span style=\"display:none\">b</span>[a]<span style=\"display:none\">r</span>baz", 111 [true,true], 112 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 113 ["foo<span style=\"display: none\">b[a]r</span>baz", 114 [["stylewithcss","false"],["removeformat",""]], 115 "foo<span style=\"display:none\">b</span>[a]<span style=\"display:none\">r</span>baz", 116 [true,true], 117 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 118 ["foo<span style=\"display: none; font-weight: bold\">b[a]r</span>baz", 119 [["stylewithcss","true"],["removeformat",""]], 120 "foo<span style=\"display:none; font-weight:bold\">b</span>[a]<span style=\"display:none; font-weight:bold\">r</span>baz", 121 [true,true], 122 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 123 ["foo<span style=\"display: none; font-weight: bold\">b[a]r</span>baz", 124 [["stylewithcss","false"],["removeformat",""]], 125 "foo<span style=\"display:none; font-weight:bold\">b</span>[a]<span style=\"display:none; font-weight:bold\">r</span>baz", 126 [true,true], 127 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 128 ["[foo<span style=\"font-variant: small-caps\">bar</span>baz]", 129 [["stylewithcss","true"],["removeformat",""]], 130 "[foobarbaz]", 131 [true,true], 132 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 133 ["[foo<span style=\"font-variant: small-caps\">bar</span>baz]", 134 [["stylewithcss","false"],["removeformat",""]], 135 "[foobarbaz]", 136 [true,true], 137 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 138 ["foo<span style=\"font-variant: small-caps\">b[a]r</span>baz", 139 [["stylewithcss","true"],["removeformat",""]], 140 "foo<span style=\"font-variant:small-caps\">b</span>[a]<span style=\"font-variant:small-caps\">r</span>baz", 141 [true,true], 142 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 143 ["foo<span style=\"font-variant: small-caps\">b[a]r</span>baz", 144 [["stylewithcss","false"],["removeformat",""]], 145 "foo<span style=\"font-variant:small-caps\">b</span>[a]<span style=\"font-variant:small-caps\">r</span>baz", 146 [true,true], 147 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 148 ["[foo<b id=foo>bar</b>baz]", 149 [["stylewithcss","true"],["removeformat",""]], 150 "[foobarbaz]", 151 [true,true], 152 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 153 ["[foo<b id=foo>bar</b>baz]", 154 [["stylewithcss","false"],["removeformat",""]], 155 "[foobarbaz]", 156 [true,true], 157 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 158 ["foo<b id=foo>b[a]r</b>baz", 159 [["stylewithcss","true"],["removeformat",""]], 160 "foo<b id=\"foo\">b</b>[a]<b>r</b>baz", 161 [true,true], 162 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 163 ["foo<b id=foo>b[a]r</b>baz", 164 [["stylewithcss","false"],["removeformat",""]], 165 "foo<b id=\"foo\">b</b>[a]<b>r</b>baz", 166 [true,true], 167 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 168 ["[foo<a>bar</a>baz]", 169 [["removeformat",""]], 170 "[foo<a>bar</a>baz]", 171 [true], 172 {"removeformat":[false,false,"",false,false,""]}], 173 ["foo<a>b[a]r</a>baz", 174 [["removeformat",""]], 175 "foo<a>b[a]r</a>baz", 176 [true], 177 {"removeformat":[false,false,"",false,false,""]}], 178 ["[foo<a href=foo>bar</a>baz]", 179 [["removeformat",""]], 180 "[foo<a href=\"foo\">bar</a>baz]", 181 [true], 182 {"removeformat":[false,false,"",false,false,""]}], 183 ["foo<a href=foo>b[a]r</a>baz", 184 [["removeformat",""]], 185 "foo<a href=\"foo\">b[a]r</a>baz", 186 [true], 187 {"removeformat":[false,false,"",false,false,""]}], 188 ["[foo<abbr>bar</abbr>baz]", 189 [["removeformat",""]], 190 "[foobarbaz]", 191 [true], 192 {"removeformat":[false,false,"",false,false,""]}], 193 ["foo<abbr>b[a]r</abbr>baz", 194 [["removeformat",""]], 195 "foo<abbr>b</abbr>[a]<abbr>r</abbr>baz", 196 [true], 197 {"removeformat":[false,false,"",false,false,""]}], 198 ["[foo<acronym>bar</acronym>baz]", 199 [["removeformat",""]], 200 "[foobarbaz]", 201 [true], 202 {"removeformat":[false,false,"",false,false,""]}], 203 ["foo<acronym>b[a]r</acronym>baz", 204 [["removeformat",""]], 205 "foo<acronym>b</acronym>[a]<acronym>r</acronym>baz", 206 [true], 207 {"removeformat":[false,false,"",false,false,""]}], 208 ["[foo<bdi dir=rtl>bar</bdi>baz]", 209 [["removeformat",""]], 210 "[foobarbaz]", 211 [true], 212 {"removeformat":[false,false,"",false,false,""]}], 213 ["foo<bdi dir=rtl>b[a]r</bdi>baz", 214 [["removeformat",""]], 215 "foo<bdi dir=\"rtl\">b</bdi>[a]<bdi dir=\"rtl\">r</bdi>baz", 216 [true], 217 {"removeformat":[false,false,"",false,false,""]}], 218 ["[foo<bdo dir=rtl>bar</bdo>baz]", 219 [["removeformat",""]], 220 "[foobarbaz]", 221 [true], 222 {"removeformat":[false,false,"",false,false,""]}], 223 ["foo<bdo dir=rtl>b[a]r</bdo>baz", 224 [["removeformat",""]], 225 "foo<bdo dir=\"rtl\">b</bdo>[a]<bdo dir=\"rtl\">r</bdo>baz", 226 [true], 227 {"removeformat":[false,false,"",false,false,""]}], 228 ["[foo<big>bar</big>baz]", 229 [["removeformat",""]], 230 "[foobarbaz]", 231 [true], 232 {"removeformat":[false,false,"",false,false,""]}], 233 ["foo<big>b[a]r</big>baz", 234 [["removeformat",""]], 235 "foo<big>b</big>[a]<big>r</big>baz", 236 [true], 237 {"removeformat":[false,false,"",false,false,""]}], 238 ["[foo<blink>bar</blink>baz]", 239 [["removeformat",""]], 240 "[foobarbaz]", 241 [true], 242 {"removeformat":[false,false,"",false,false,""]}], 243 ["foo<blink>b[a]r</blink>baz", 244 [["removeformat",""]], 245 "foo<blink>b</blink>[a]<blink>r</blink>baz", 246 [true], 247 {"removeformat":[false,false,"",false,false,""]}], 248 ["[foo<cite>bar</cite>baz]", 249 [["removeformat",""]], 250 "[foobarbaz]", 251 [true], 252 {"removeformat":[false,false,"",false,false,""]}], 253 ["foo<cite>b[a]r</cite>baz", 254 [["removeformat",""]], 255 "foo<cite>b</cite>[a]<cite>r</cite>baz", 256 [true], 257 {"removeformat":[false,false,"",false,false,""]}], 258 ["[foo<code>bar</code>baz]", 259 [["removeformat",""]], 260 "[foobarbaz]", 261 [true], 262 {"removeformat":[false,false,"",false,false,""]}], 263 ["foo<code>b[a]r</code>baz", 264 [["removeformat",""]], 265 "foo<code>b</code>[a]<code>r</code>baz", 266 [true], 267 {"removeformat":[false,false,"",false,false,""]}], 268 ["[foo<del>bar</del>baz]", 269 [["removeformat",""]], 270 "[foo<del>bar</del>baz]", 271 [true], 272 {"removeformat":[false,false,"",false,false,""]}], 273 ["foo<del>b[a]r</del>baz", 274 [["removeformat",""]], 275 "foo<del>b[a]r</del>baz", 276 [true], 277 {"removeformat":[false,false,"",false,false,""]}], 278 ["[foo<dfn>bar</dfn>baz]", 279 [["removeformat",""]], 280 "[foobarbaz]", 281 [true], 282 {"removeformat":[false,false,"",false,false,""]}], 283 ["foo<dfn>b[a]r</dfn>baz", 284 [["removeformat",""]], 285 "foo<dfn>b</dfn>[a]<dfn>r</dfn>baz", 286 [true], 287 {"removeformat":[false,false,"",false,false,""]}], 288 ["[foo<em>bar</em>baz]", 289 [["removeformat",""]], 290 "[foobarbaz]", 291 [true], 292 {"removeformat":[false,false,"",false,false,""]}], 293 ["foo<em>b[a]r</em>baz", 294 [["removeformat",""]], 295 "foo<em>b</em>[a]<em>r</em>baz", 296 [true], 297 {"removeformat":[false,false,"",false,false,""]}], 298 ["[foo<font>bar</font>baz]", 299 [["stylewithcss","true"],["removeformat",""]], 300 "[foobarbaz]", 301 [true,true], 302 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 303 ["[foo<font>bar</font>baz]", 304 [["stylewithcss","false"],["removeformat",""]], 305 "[foobarbaz]", 306 [true,true], 307 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 308 ["foo<font>b[a]r</font>baz", 309 [["stylewithcss","true"],["removeformat",""]], 310 "foo<font>b</font>[a]<font>r</font>baz", 311 [true,true], 312 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 313 ["foo<font>b[a]r</font>baz", 314 [["stylewithcss","false"],["removeformat",""]], 315 "foo<font>b</font>[a]<font>r</font>baz", 316 [true,true], 317 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 318 ["[foo<font color=blue>bar</font>baz]", 319 [["stylewithcss","true"],["removeformat",""]], 320 "[foobarbaz]", 321 [true,true], 322 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 323 ["[foo<font color=blue>bar</font>baz]", 324 [["stylewithcss","false"],["removeformat",""]], 325 "[foobarbaz]", 326 [true,true], 327 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 328 ["foo<font color=blue>b[a]r</font>baz", 329 [["stylewithcss","true"],["removeformat",""]], 330 "foo<font color=\"blue\">b</font>[a]<font color=\"blue\">r</font>baz", 331 [true,true], 332 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 333 ["foo<font color=blue>b[a]r</font>baz", 334 [["stylewithcss","false"],["removeformat",""]], 335 "foo<font color=\"blue\">b</font>[a]<font color=\"blue\">r</font>baz", 336 [true,true], 337 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 338 ["[foo<i>bar</i>baz]", 339 [["stylewithcss","true"],["removeformat",""]], 340 "[foobarbaz]", 341 [true,true], 342 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 343 ["[foo<i>bar</i>baz]", 344 [["stylewithcss","false"],["removeformat",""]], 345 "[foobarbaz]", 346 [true,true], 347 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 348 ["foo<i>b[a]r</i>baz", 349 [["stylewithcss","true"],["removeformat",""]], 350 "foo<i>b</i>[a]<i>r</i>baz", 351 [true,true], 352 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 353 ["foo<i>b[a]r</i>baz", 354 [["stylewithcss","false"],["removeformat",""]], 355 "foo<i>b</i>[a]<i>r</i>baz", 356 [true,true], 357 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 358 ["[foo<ins>bar</ins>baz]", 359 [["removeformat",""]], 360 "[foobarbaz]", 361 [true], 362 {"removeformat":[false,false,"",false,false,""]}], 363 ["foo<ins>b[a]r</ins>baz", 364 [["removeformat",""]], 365 "foo<ins>b</ins>[a]<ins>r</ins>baz", 366 [true], 367 {"removeformat":[false,false,"",false,false,""]}], 368 ["[foo<kbd>bar</kbd>baz]", 369 [["removeformat",""]], 370 "[foobarbaz]", 371 [true], 372 {"removeformat":[false,false,"",false,false,""]}], 373 ["foo<kbd>b[a]r</kbd>baz", 374 [["removeformat",""]], 375 "foo<kbd>b</kbd>[a]<kbd>r</kbd>baz", 376 [true], 377 {"removeformat":[false,false,"",false,false,""]}], 378 ["[foo<mark>bar</mark>baz]", 379 [["removeformat",""]], 380 "[foobarbaz]", 381 [true], 382 {"removeformat":[false,false,"",false,false,""]}], 383 ["foo<mark>b[a]r</mark>baz", 384 [["removeformat",""]], 385 "foo<mark>b</mark>[a]<mark>r</mark>baz", 386 [true], 387 {"removeformat":[false,false,"",false,false,""]}], 388 ["[foo<nobr>bar</nobr>baz]", 389 [["removeformat",""]], 390 "[foobarbaz]", 391 [true], 392 {"removeformat":[false,false,"",false,false,""]}], 393 ["foo<nobr>b[a]r</nobr>baz", 394 [["removeformat",""]], 395 "foo<nobr>b</nobr>[a]<nobr>r</nobr>baz", 396 [true], 397 {"removeformat":[false,false,"",false,false,""]}], 398 ["[foo<q>bar</q>baz]", 399 [["removeformat",""]], 400 "[foobarbaz]", 401 [true], 402 {"removeformat":[false,false,"",false,false,""]}], 403 ["foo<q>b[a]r</q>baz", 404 [["removeformat",""]], 405 "foo<q>b</q>[a]<q>r</q>baz", 406 [true], 407 {"removeformat":[false,false,"",false,false,""]}], 408 ["[foo<samp>bar</samp>baz]", 409 [["removeformat",""]], 410 "[foobarbaz]", 411 [true], 412 {"removeformat":[false,false,"",false,false,""]}], 413 ["foo<samp>b[a]r</samp>baz", 414 [["removeformat",""]], 415 "foo<samp>b</samp>[a]<samp>r</samp>baz", 416 [true], 417 {"removeformat":[false,false,"",false,false,""]}], 418 ["[foo<s>bar</s>baz]", 419 [["stylewithcss","true"],["removeformat",""]], 420 "[foobarbaz]", 421 [true,true], 422 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 423 ["[foo<s>bar</s>baz]", 424 [["stylewithcss","false"],["removeformat",""]], 425 "[foobarbaz]", 426 [true,true], 427 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 428 ["foo<s>b[a]r</s>baz", 429 [["stylewithcss","true"],["removeformat",""]], 430 "foo<s>b</s>[a]<s>r</s>baz", 431 [true,true], 432 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 433 ["foo<s>b[a]r</s>baz", 434 [["stylewithcss","false"],["removeformat",""]], 435 "foo<s>b</s>[a]<s>r</s>baz", 436 [true,true], 437 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 438 ["[foo<small>bar</small>baz]", 439 [["removeformat",""]], 440 "[foobarbaz]", 441 [true], 442 {"removeformat":[false,false,"",false,false,""]}], 443 ["foo<small>b[a]r</small>baz", 444 [["removeformat",""]], 445 "foo<small>b</small>[a]<small>r</small>baz", 446 [true], 447 {"removeformat":[false,false,"",false,false,""]}], 448 ["[foo<span>bar</span>baz]", 449 [["removeformat",""]], 450 "[foobarbaz]", 451 [true], 452 {"removeformat":[false,false,"",false,false,""]}], 453 ["foo<span>b[a]r</span>baz", 454 [["removeformat",""]], 455 "foo<span>b</span>[a]<span>r</span>baz", 456 [true], 457 {"removeformat":[false,false,"",false,false,""]}], 458 ["[foo<strike>bar</strike>baz]", 459 [["stylewithcss","true"],["removeformat",""]], 460 "[foobarbaz]", 461 [true,true], 462 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 463 ["[foo<strike>bar</strike>baz]", 464 [["stylewithcss","false"],["removeformat",""]], 465 "[foobarbaz]", 466 [true,true], 467 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 468 ["foo<strike>b[a]r</strike>baz", 469 [["stylewithcss","true"],["removeformat",""]], 470 "foo<strike>b</strike>[a]<strike>r</strike>baz", 471 [true,true], 472 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 473 ["foo<strike>b[a]r</strike>baz", 474 [["stylewithcss","false"],["removeformat",""]], 475 "foo<strike>b</strike>[a]<strike>r</strike>baz", 476 [true,true], 477 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 478 ["[foo<strong>bar</strong>baz]", 479 [["removeformat",""]], 480 "[foobarbaz]", 481 [true], 482 {"removeformat":[false,false,"",false,false,""]}], 483 ["foo<strong>b[a]r</strong>baz", 484 [["removeformat",""]], 485 "foo<strong>b</strong>[a]<strong>r</strong>baz", 486 [true], 487 {"removeformat":[false,false,"",false,false,""]}], 488 ["[foo<sub>bar</sub>baz]", 489 [["stylewithcss","true"],["removeformat",""]], 490 "[foobarbaz]", 491 [true,true], 492 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 493 ["[foo<sub>bar</sub>baz]", 494 [["stylewithcss","false"],["removeformat",""]], 495 "[foobarbaz]", 496 [true,true], 497 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 498 ["foo<sub>b[a]r</sub>baz", 499 [["stylewithcss","true"],["removeformat",""]], 500 "foo<sub>b</sub>[a]<sub>r</sub>baz", 501 [true,true], 502 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 503 ["foo<sub>b[a]r</sub>baz", 504 [["stylewithcss","false"],["removeformat",""]], 505 "foo<sub>b</sub>[a]<sub>r</sub>baz", 506 [true,true], 507 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 508 ["[foo<sup>bar</sup>baz]", 509 [["stylewithcss","true"],["removeformat",""]], 510 "[foobarbaz]", 511 [true,true], 512 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 513 ["[foo<sup>bar</sup>baz]", 514 [["stylewithcss","false"],["removeformat",""]], 515 "[foobarbaz]", 516 [true,true], 517 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 518 ["foo<sup>b[a]r</sup>baz", 519 [["stylewithcss","true"],["removeformat",""]], 520 "foo<sup>b</sup>[a]<sup>r</sup>baz", 521 [true,true], 522 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 523 ["foo<sup>b[a]r</sup>baz", 524 [["stylewithcss","false"],["removeformat",""]], 525 "foo<sup>b</sup>[a]<sup>r</sup>baz", 526 [true,true], 527 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 528 ["[foo<tt>bar</tt>baz]", 529 [["removeformat",""]], 530 "[foobarbaz]", 531 [true], 532 {"removeformat":[false,false,"",false,false,""]}], 533 ["foo<tt>b[a]r</tt>baz", 534 [["removeformat",""]], 535 "foo<tt>b</tt>[a]<tt>r</tt>baz", 536 [true], 537 {"removeformat":[false,false,"",false,false,""]}], 538 ["[foo<u>bar</u>baz]", 539 [["stylewithcss","true"],["removeformat",""]], 540 "[foobarbaz]", 541 [true,true], 542 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 543 ["[foo<u>bar</u>baz]", 544 [["stylewithcss","false"],["removeformat",""]], 545 "[foobarbaz]", 546 [true,true], 547 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 548 ["foo<u>b[a]r</u>baz", 549 [["stylewithcss","true"],["removeformat",""]], 550 "foo<u>b</u>[a]<u>r</u>baz", 551 [true,true], 552 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 553 ["foo<u>b[a]r</u>baz", 554 [["stylewithcss","false"],["removeformat",""]], 555 "foo<u>b</u>[a]<u>r</u>baz", 556 [true,true], 557 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 558 ["[foo<var>bar</var>baz]", 559 [["removeformat",""]], 560 "[foobarbaz]", 561 [true], 562 {"removeformat":[false,false,"",false,false,""]}], 563 ["foo<var>b[a]r</var>baz", 564 [["removeformat",""]], 565 "foo<var>b</var>[a]<var>r</var>baz", 566 [true], 567 {"removeformat":[false,false,"",false,false,""]}], 568 ["[foo<br>bar]", 569 [["removeformat",""]], 570 "[foo<br>bar]", 571 [true], 572 {"removeformat":[false,false,"",false,false,""]}], 573 ["[foo<hr>bar]", 574 [["removeformat",""]], 575 "[foo<hr>bar]", 576 [true], 577 {"removeformat":[false,false,"",false,false,""]}], 578 ["[foo<wbr>bar]", 579 [["removeformat",""]], 580 "[foo<wbr>bar]", 581 [true], 582 {"removeformat":[false,false,"",false,false,""]}], 583 ["[foo<img>bar]", 584 [["removeformat",""]], 585 "[foo<img>bar]", 586 [true], 587 {"removeformat":[false,false,"",false,false,""]}], 588 ["[foo<img src=abc>bar]", 589 [["removeformat",""]], 590 "[foo<img src=\"abc\">bar]", 591 [true], 592 {"removeformat":[false,false,"",false,false,""]}], 593 ["[foo<video></video>bar]", 594 [["removeformat",""]], 595 "[foo<video></video>bar]", 596 [true], 597 {"removeformat":[false,false,"",false,false,""]}], 598 ["[foo<video src=abc></video>bar]", 599 [["removeformat",""]], 600 "[foo<video src=\"abc\"></video>bar]", 601 [true], 602 {"removeformat":[false,false,"",false,false,""]}], 603 ["[foo<svg><circle fill=blue r=20 cx=20 cy=20 /></svg>bar]", 604 [["removeformat",""]], 605 "[foo<svg><circle fill=\"blue\" r=\"20\" cx=\"20\" cy=\"20\"></circle></svg>bar]", 606 [true], 607 {"removeformat":[false,false,"",false,false,""]}], 608 ["[foo<nonexistentelement>bar</nonexistentelement>baz]", 609 [["removeformat",""]], 610 "[foo<nonexistentelement>bar</nonexistentelement>baz]", 611 [true], 612 {"removeformat":[false,false,"",false,false,""]}], 613 ["foo<nonexistentelement>b[a]r</nonexistentelement>baz", 614 [["removeformat",""]], 615 "foo<nonexistentelement>b[a]r</nonexistentelement>baz", 616 [true], 617 {"removeformat":[false,false,"",false,false,""]}], 618 ["[foo<nonexistentelement style=\"display: block\">bar</nonexistentelement>baz]", 619 [["removeformat",""]], 620 "[foo<nonexistentelement style=\"display:block\">bar</nonexistentelement>baz]", 621 [true], 622 {"removeformat":[false,false,"",false,false,""]}], 623 ["foo<nonexistentelement style=\"display: block\">b[a]r</nonexistentelement>baz", 624 [["removeformat",""]], 625 "foo<nonexistentelement style=\"display:block\">b[a]r</nonexistentelement>baz", 626 [true], 627 {"removeformat":[false,false,"",false,false,""]}], 628 ["[foo<span id=foo>bar</span>baz]", 629 [["removeformat",""]], 630 "[foobarbaz]", 631 [true], 632 {"removeformat":[false,false,"",false,false,""]}], 633 ["foo<span id=foo>b[a]r</span>baz", 634 [["removeformat",""]], 635 "foo<span id=\"foo\">b</span>[a]<span>r</span>baz", 636 [true], 637 {"removeformat":[false,false,"",false,false,""]}], 638 ["[foo<span class=foo>bar</span>baz]", 639 [["removeformat",""]], 640 "[foobarbaz]", 641 [true], 642 {"removeformat":[false,false,"",false,false,""]}], 643 ["foo<span class=foo>b[a]r</span>baz", 644 [["removeformat",""]], 645 "foo<span class=\"foo\">b</span>[a]<span class=\"foo\">r</span>baz", 646 [true], 647 {"removeformat":[false,false,"",false,false,""]}], 648 ["[foo<b style=\"font-weight: normal\">bar</b>baz]", 649 [["stylewithcss","true"],["removeformat",""]], 650 "[foobarbaz]", 651 [true,true], 652 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 653 ["[foo<b style=\"font-weight: normal\">bar</b>baz]", 654 [["stylewithcss","false"],["removeformat",""]], 655 "[foobarbaz]", 656 [true,true], 657 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 658 ["foo<b style=\"font-weight: normal\">b[a]r</b>baz", 659 [["stylewithcss","true"],["removeformat",""]], 660 "foo<b style=\"font-weight:normal\">b</b>[a]<b style=\"font-weight:normal\">r</b>baz", 661 [true,true], 662 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 663 ["foo<b style=\"font-weight: normal\">b[a]r</b>baz", 664 [["stylewithcss","false"],["removeformat",""]], 665 "foo<b style=\"font-weight:normal\">b</b>[a]<b style=\"font-weight:normal\">r</b>baz", 666 [true,true], 667 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 668 ["<p style=\"background-color: aqua\">foo[bar]baz</p>", 669 [["removeformat",""]], 670 "<p style=\"background-color:rgb(0, 255, 255)\">foo[bar]baz</p>", 671 [true], 672 {"removeformat":[false,false,"",false,false,""]}], 673 ["<p><span style=\"background-color: aqua\">foo[bar]baz</span></p>", 674 [["stylewithcss","true"],["removeformat",""]], 675 "<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>[bar]<span style=\"background-color:rgb(0, 255, 255)\">baz</span></p>", 676 [true,true], 677 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 678 ["<p><span style=\"background-color: aqua\">foo[bar]baz</span></p>", 679 [["stylewithcss","false"],["removeformat",""]], 680 "<p><span style=\"background-color:rgb(0, 255, 255)\">foo</span>[bar]<span style=\"background-color:rgb(0, 255, 255)\">baz</span></p>", 681 [true,true], 682 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 683 ["<p style=\"font-weight: bold\">foo[bar]baz</p>", 684 [["stylewithcss","true"],["removeformat",""]], 685 "<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weight:bold\">baz</span></p>", 686 [true,true], 687 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 688 ["<p style=\"font-weight: bold\">foo[bar]baz</p>", 689 [["stylewithcss","false"],["removeformat",""]], 690 "<p><b>foo</b>[bar]<b>baz</b></p>", 691 [true,true], 692 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 693 ["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>", 694 [["stylewithcss","true"],["removeformat",""]], 695 "<p><span style=\"font-weight:bold\">foo</span>[bar]<span style=\"font-weight:bold\">baz</span></p>", 696 [true,true], 697 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 698 ["<b><p style=\"font-weight: bold\">foo[bar]baz</p></b>", 699 [["stylewithcss","false"],["removeformat",""]], 700 "<p><b>foo</b>[bar]<b>baz</b></p>", 701 [true,true], 702 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}], 703 ["<p style=\"font-variant: small-caps\">foo[bar]baz</p>", 704 [["removeformat",""]], 705 "<p style=\"font-variant:small-caps\">foo[bar]baz</p>", 706 [true], 707 {"removeformat":[false,false,"",false,false,""]}], 708 ["{<p style=\"font-variant: small-caps\">foobarbaz</p>}", 709 [["removeformat",""]], 710 "{<p style=\"font-variant:small-caps\">foobarbaz</p>}", 711 [true], 712 {"removeformat":[false,false,"",false,false,""]}], 713 ["<p style=\"text-indent: 2em\">foo[bar]baz</p>", 714 [["removeformat",""]], 715 "<p style=\"text-indent:2em\">foo[bar]baz</p>", 716 [true], 717 {"removeformat":[false,false,"",false,false,""]}], 718 ["{<p style=\"text-indent: 2em\">foobarbaz</p>}", 719 [["removeformat",""]], 720 "{<p style=\"text-indent:2em\">foobarbaz</p>}", 721 [true], 722 {"removeformat":[false,false,"",false,false,""]}], 723 ["<table data-start=0 data-end=1><tr><td><b>foo</b></table>", 724 [["stylewithcss","true"],["removeformat",""]], 725 "<table>{<tbody><tr><td>foo</td></tr></tbody>}</table>", 726 [true,true], 727 {"stylewithcss":[false,false,"",false,true,""],"removeformat":[false,false,"",false,false,""]}], 728 ["<table data-start=0 data-end=1><tr><td><b>foo</b></table>", 729 [["stylewithcss","false"],["removeformat",""]], 730 "<table>{<tbody><tr><td>foo</td></tr></tbody>}</table>", 731 [true,true], 732 {"stylewithcss":[false,true,"",false,false,""],"removeformat":[false,false,"",false,false,""]}] 733 ]