Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/tests/parser/badCharacters.txt
Ðазад
# This file should only contain tests using special characters # that trip up some text editors. # a) Already lost this test for years when removed on r12975 # b) Some text editors choke on the file due to the character # # The parsoid-compatible option below is only relevant when we are running # parser tests in integrated mode with Parsoid. This option is ignored # when this test file is run with Parsoid in standalone mode. !! options parsoid-compatible=wt2html,wt2wt version=2 !! end !! test External links: invalid character NUL (stripped) !! wikitext [http://www.example.com test] !! html <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a> </p> !! end !! test External links: invalid character backspace (preserved) !! options preprocessor=Preprocessor_Hash !! wikitext [http://www.example.com test] !! html <p>[<a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test] </p> !! end !! test Magic link: invalid character NUL (stripped) !! wikitext http://www.example.com test !! html <p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test </p> !! end !! test Magic link: invalid character backspace (preserved) !! options preprocessor=Preprocessor_Hash !! wikitext http://www.example.com test !! html <p><a rel="nofollow" class="external free" href="http://www.example.com">http://www.example.com</a> test </p> !! end !! test External links: tab character !! wikitext [http://www.example.com Alice in Wonderland] !! html <p><a rel="nofollow" class="external text" href="http://www.example.com">Alice in Wonderland</a> </p> !! end !! test U+0338, bare and as entity !! config wgParserEnableLegacyHeadingDOM=false wgFragmentMode=[ "html5" ] !! options showtocdata parsoid={ "modes": [ "wt2html", "html2html" ], "wrapSections": true } !! wikitext Header == ̸ One & == ̸ Text == ̸ Two & == ̸ Text !! metadata Sections: h2 index:1 toclevel:1 number:1 title:Parser_test off:8 anchor/linkAnchor:̸_One_& line:̸ One & h2 index:2 toclevel:1 number:2 title:Parser_test off:42 anchor/linkAnchor:̸_Two_& line:̸ Two & !! html/php <p>Header </p> <div class="mw-heading mw-heading2"><h2 id="̸_One_&"≯ One &</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: ̸ One &">edit</a><span class="mw-editsection-bracket">]</span></span></div> <p≯ Text </p> <div class="mw-heading mw-heading2"><h2 id="̸_Two_&"≯ Two &</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: ̸ Two &">edit</a><span class="mw-editsection-bracket">]</span></span></div> <p≯ Text </p> !! html/parsoid <section data-mw-section-id="0"> <p>Header</p> </section><section data-mw-section-id="1"> <h2 id="̸_One_&"><span id=".CC.B8_One_.26" typeof="mw:FallbackId"></span><span typeof="mw:Entity"≯</span> One &</h2> <p><span typeof="mw:Entity"≯</span> Text</p> </section><section data-mw-section-id="2"> <h2 id="̸_Two_&"><span id=".CC.B8_Two_.26" typeof="mw:FallbackId"></span≯ Two &</h2> <p≯ Text</p> </section> !! end ## Note that there's a leading \r here that's necessary for the test !! test Stray carriage return in text !! options parsoid=wt2html !! wikitext hiho !! html/php <p> hiho </p> !! html/parsoid <p> hiho</p> !! end
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка