Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2026-10-06 6bac54b555d27f1a85c1e4f011a6e7bd9111b0d0
src/test/regress/expected/htf.out
@@ -616,3 +616,333 @@
 <li clear="&#x22;qw&#x20;&#x042F;&#x22;" dingbat="&#x22;qw&#x20;&#x042F;&#x22;" src="&#x22;qw&#x20;&#x042F;&#x22;" "qw Я">&quot;qw &#x042F;&quot;
(1 row)
select htf_meta(NULL, NULL, NULL);
                 htf_meta
-------------------------------------------
 <meta http-equiv="" name="" content="" />
(1 row)
select htf_meta('"q> Я', '"q> Я', '"q> Я');
                                                          htf_meta
----------------------------------------------------------------------------------------------------------------------------
 <meta http-equiv="&#x22;q&#x3E;&#x20;&#x042F;" name="&#x22;q&#x3E;&#x20;&#x042F;" content="&#x22;q&#x3E;&#x20;&#x042F;" />
(1 row)
select htf_mailto('"q> Я', '"q> Я', '"q> Я', '"q> Я');
                                             htf_mailto
-----------------------------------------------------------------------------------------------------
 <a href="mailto:&quot;q&gt; Я" name="&#x22;q&#x3E;&#x20;&#x042F;" "q&gt; Я>&quot;q&gt; &#x042F;</a>
(1 row)
select htf_mailto(NULL, NULL, NULL, NULL);
       htf_mailto
------------------------
 <a href="mailto:"></a>
(1 row)
select htf_nextid('"q> Я"');
                  htf_nextid
-----------------------------------------------
 <nextid n="&#x22;q&#x3E;&#x20;&#x042F;&#x22;>
(1 row)
select htf_nextid(NULL);
  htf_nextid
--------------
 <nextid n=">
(1 row)
select htf_nl('"q> Я"', '"q> Я"');
                           htf_nl
------------------------------------------------------------
 <br clear="&#x22;q&#x3E;&#x20;&#x042F;&#x22;" "q&gt; Я" />
(1 row)
select htf_nl(NULL, NULL);
 htf_nl
--------
 <br />
(1 row)
select htf_nobr('"q> Я"');
                htf_nobr
-----------------------------------------
 <nobr>&quot;q&gt; &#x042F;&quot;</nobr>
(1 row)
select htf_nobr(NULL);
   htf_nobr
---------------
 <nobr></nobr>
(1 row)
select htf_olistopen(NULL, NULL, NULL);
 htf_olistopen
---------------
 <ol>
(1 row)
select htf_olistopen('"q> Я"', '"q> Я"', '"q> Я"');
                                           htf_olistopen
---------------------------------------------------------------------------------------------------
 <ol clear="&#x22;q&#x3E;&#x20;&#x042F;&#x22;" wrap="&#x22;q&#x3E;&#x20;&#x042F;&#x22;" "q&gt; Я">
(1 row)
select htf_paragraph(NULL, NULL, NULL, NULL);
 htf_paragraph
---------------
 <p>
(1 row)
select htf_paragraph('"q> Я"', '"q> Я"', '"q> Я"', '"q> Я"');
                                                   htf_paragraph
-------------------------------------------------------------------------------------------------------------------
 <p align="&#x22;q&#x3E;&#x20;&#x042F;&#x22;" clear="&#x22;q&#x3E;&#x20;&#x042F;&#x22;" nowrap="nowrap" "q&gt; Я">
(1 row)
select htf_s(NULL, NULL);
  htf_s
---------
 <s></s>
(1 row)
select htf_s('"q> Я"', '"q> Я"');
                    htf_s
---------------------------------------------
 <s "q&gt; Я">&quot;q&gt; &#x042F;&quot;</s>
(1 row)
select htf_sample(NULL, NULL);
  htf_sample
---------------
 <samp></samp>
(1 row)
select htf_sample('"q Я"', '"q Я"');
                htf_sample
-------------------------------------------
 <samp "q Я">&quot;q &#x042F;&quot;</samp>
(1 row)
select htf_script(NULL, NULL);
     htf_script
---------------------
 <script>''</script>
(1 row)
select htf_script('Text '' "Я"', 'C');
                           htf_script
----------------------------------------------------------------
 <script language='C'>'Text \u0027 \u0022\u042F\u0022'</script>
(1 row)
select htf_set_html_escaping_mode('b');
 htf_set_html_escaping_mode
----------------------------
(1 row)
select htf_small('"q Я"', '"q Я"');
              htf_small
--------------------------------------
 <small "q Я">&quot;q Я&quot;</small>
(1 row)
select htf_set_html_escaping_mode('e');
 htf_set_html_escaping_mode
----------------------------
(1 row)
select htf_small(NULL, NULL);
    htf_small
-----------------
 <small></small>
(1 row)
select htf_small('"q Я"', '"q Я"');
                  htf_small
---------------------------------------------
 <small "q Я">&quot;q &#x042F;&quot;</small>
(1 row)
select htf_strike(NULL, NULL);
    htf_strike
-------------------
 <strike></strike>
(1 row)
select htf_strike('"q Я"', '"q Я"');
                  htf_strike
-----------------------------------------------
 <strike "q Я">&quot;q &#x042F;&quot;</strike>
(1 row)
select htf_strong(NULL, NULL);
    htf_strong
-------------------
 <strong></strong>
(1 row)
select htf_strong('"q Я"', '"q Я"');
                  htf_strong
-----------------------------------------------
 <strong "q Я">&quot;q &#x042F;&quot;</strong>
(1 row)
select htf_style(NULL);
    htf_style
-----------------
 <style></style>
(1 row)
select htf_style('Я"txt" ''\\');
            htf_style
---------------------------------
 <style>\42F"txt" \'\\\\</style>
(1 row)
select htf_sub(NULL, NULL, NULL);
   htf_sub
-------------
 <sub></sub>
(1 row)
select htf_sub('Text"Я"', 'qЯ"', 'tЯ"');
                             htf_sub
-----------------------------------------------------------------
 <sub align="q&#x042F;&#x22;" tЯ">Text&quot;&#x042F;&quot;</sub>
(1 row)
select htf_sup(NULL, NULL, NULL);
   htf_sup
-------------
 <sup></sup>
(1 row)
select htf_sup('Text"Я"', 'qЯ"', 'tЯ"');
                             htf_sup
-----------------------------------------------------------------
 <sup align="q&#x042F;&#x22;" tЯ">Text&quot;&#x042F;&quot;</sup>
(1 row)
select htf_tablecaption(NULL, NULL, NULL);
  htf_tablecaption
---------------------
 <caption></caption>
(1 row)
select htf_tablecaption('text "Я"', 'q', 'att');
                      htf_tablecaption
------------------------------------------------------------
 <caption align="q" att>text &quot;&#x042F;&quot;</caption>
(1 row)
select htf_tabledata(NULL, NULL, NULL, NULL, NULL, NULL, NULL);
 htf_tabledata
---------------
 <td></td>
(1 row)
select htf_tabledata('"text +Я', 'q"', 't"', '1" ', '2" ', '3" ', '4" ');
                                                         htf_tabledata
--------------------------------------------------------------------------------------------------------------------------------
 <td align="q&#x22;" dp="t&#x22;" rowspan="2&#x22;&#x20;" colspan="3&#x22;&#x20;" nowrap="nowrap" 4" >&quot;text +&#x042F;</td>
(1 row)
select htf_tableheader(NULL, NULL, NULL, NULL, NULL, NULL, NULL);
 htf_tableheader
-----------------
 <th></th>
(1 row)
select htf_tableheader('"textЯ"', '"qЯ"', '"tЯ"', '"1Я" ', '"2Я" ', '"3Я" ', '"4Я"');
                                                                                       htf_tableheader
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 <th align="&#x22;q&#x042F;&#x22;" dp="&#x22;t&#x042F;&#x22;" rowspan="&#x22;2&#x042F;&#x22;&#x20;" colspan="&#x22;3&#x042F;&#x22;&#x20;" nowrap="nowrap" "4Я">&quot;text&#x042F;&quot;</th>
(1 row)
select htf_tableopen(NULL, NULL, NULL, NULL, NULL);
 htf_tableopen
---------------
 <table>
(1 row)
select htf_tableopen('"text Я"', '"qЯ"', '"tЯ"', '"1Я" ', '"2Я"');
                                                         htf_tableopen
-------------------------------------------------------------------------------------------------------------------------------
 <table &#x22;text&#x20;&#x042F;&#x22; nowrap="nowrap" align="&#x22;t&#x042F;&#x22;" clear="&#x22;1&#x042F;&#x22;&#x20;" "2Я">
(1 row)
select htf_tablerowopen(NULL, NULL, NULL, NULL, NULL);
 htf_tablerowopen
------------------
 <tr>
(1 row)
select htf_tablerowopen('"text Я"', '"qЯ"', '"tЯ"', '"1Я" ', '"2Я"');
                                                      htf_tablerowopen
----------------------------------------------------------------------------------------------------------------------------
 <tr align="&#x22;text&#x20;&#x042F;&#x22;" valign="&#x22;q&#x042F;&#x22;" dp="&#x22;t&#x042F;&#x22;" nowrap="nowrap" "2Я">
(1 row)
select htf_teletype(NULL, NULL);
 htf_teletype
--------------
 <tt></tt>
(1 row)
select htf_teletype('"text Я"', '"q"');
              htf_teletype
----------------------------------------
 <tt "q">&quot;text &#x042F;&quot;</tt>
(1 row)
select htf_title(NULL);
    htf_title
-----------------
 <title></title>
(1 row)
select htf_title('q"Я');
           htf_title
--------------------------------
 <title>q&quot;&#x042F;</title>
(1 row)
select htf_ulistopen(NULL, NULL, NULL, NULL, NULL);
 htf_ulistopen
---------------
 <ul>
(1 row)
select htf_ulistopen('"textЯ"', '"qЯ"', '"tЯ"', '"1Я" ', '"2Я"');
                                                               htf_ulistopen
-------------------------------------------------------------------------------------------------------------------------------------------
 <ul clear="&#x22;text&#x042F;&#x22;" wrap="&#x22;q&#x042F;&#x22;" dingbat="&#x22;t&#x042F;&#x22;" src="&#x22;1&#x042F;&#x22;&#x20;" "2Я">
(1 row)
select htf_underline(NULL, NULL);
 htf_underline
---------------
 <u></u>
(1 row)
select htf_underline('"textЯ"', '"qЯ"');
            htf_underline
--------------------------------------
 <u "qЯ">&quot;text&#x042F;&quot;</u>
(1 row)
select htf_variable(NULL, NULL);
 htf_variable
--------------
 <var></var>
(1 row)
select htf_variable('"textЯ"', '"qЯ"');
               htf_variable
------------------------------------------
 <var "qЯ">&quot;text&#x042F;&quot;</var>
(1 row)