mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/14846] Updated s9e\TextFormatter
PHPBB3-14846
This commit is contained in:
1
tests/text_processing/tickets_data/PHPBB3-14846.html
Normal file
1
tests/text_processing/tickets_data/PHPBB3-14846.html
Normal file
@@ -0,0 +1 @@
|
||||
<div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">moderator text<div style="font-weight: bold; text-align: right">- Mickroz</div></div>
|
1
tests/text_processing/tickets_data/PHPBB3-14846.txt
Normal file
1
tests/text_processing/tickets_data/PHPBB3-14846.txt
Normal file
@@ -0,0 +1 @@
|
||||
[mod=Mickroz]moderator text[/mod]
|
28
tests/text_processing/tickets_data/PHPBB3-14846.xml
Normal file
28
tests/text_processing/tickets_data/PHPBB3-14846.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<dataset>
|
||||
<table name="phpbb_bbcodes">
|
||||
<column>bbcode_id</column>
|
||||
<column>bbcode_tag</column>
|
||||
<column>bbcode_helpline</column>
|
||||
<column>display_on_posting</column>
|
||||
<column>bbcode_match</column>
|
||||
<column>bbcode_tpl</column>
|
||||
<column>first_pass_match</column>
|
||||
<column>first_pass_replace</column>
|
||||
<column>second_pass_match</column>
|
||||
<column>second_pass_replace</column>
|
||||
|
||||
<row>
|
||||
<value>13</value>
|
||||
<value>mod=</value>
|
||||
<value></value>
|
||||
<value>1</value>
|
||||
<value>[mod={TEXT1}]{TEXT2}[/mod]</value>
|
||||
<value><![CDATA[<div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">{TEXT2}<div style="font-weight: bold; text-align: right">- {TEXT1}</div></div>]]></value>
|
||||
<value><\[/mod\]!ies]]></value>
|
||||
<value><![CDATA['[mod='.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${1}')).':$uid]'.str_replace(array("\r\n", '\"', '\'', '(', ')'), array("\n", '"', ''', '(', ')'), trim('${2}')).'[/mod:$uid]']]></value>
|
||||
<value><\[/mod:$uid\]!s]]></value>
|
||||
<value><![CDATA[<div style="padding: .2em .5em; font-size: .8em; width: 200px; background: #FFD;">${2}<div style="font-weight: bold; text-align: right">- ${1}</div></div>]]></value>
|
||||
</row>
|
||||
</table>
|
||||
</dataset>
|
Reference in New Issue
Block a user