cvs: phpdoc-da /reference/strings/functions nl2br.xml

[email protected] ("Tom Sommer")
Newsgroups php.doc.da
Message-ID <cvstomsommer1088358651@cvsserver>
tomsommer		Sun Jun 27 13:50:51 2004 EDT

  Added files:                 
    /phpdoc-da/reference/strings/functions	nl2br.xml 
  Log:
  Initial translation
  
  

http://cvs.php.net/co.php/phpdoc-da/reference/strings/functions/nl2br.xml?r=1.1&p=1
Index: phpdoc-da/reference/strings/functions/nl2br.xml
+++ phpdoc-da/reference/strings/functions/nl2br.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.4 Maintainer: tomsommer Status: ready -->
  <refentry id="function.nl2br">
   <refnamediv>
    <refname>nl2br</refname>
    <refpurpose>
     Indsætter HTML linieskift før alle nye linier i en streng
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Beskrivelse</title>
     <methodsynopsis>
      <type>string</type><methodname>nl2br</methodname>
      <methodparam><type>string</type><parameter>string</parameter></methodparam>
     </methodsynopsis>
    <para>
     Returnere <parameter>string</parameter> med '&lt;br /&gt;' indsat
     før alle nye linier.
    </para>
   <note>
    <para>
     Fra PHP 4.0.5, overholder <function>nl2br</function> XHTML
     standarden. Alle versioner før 4.0.5 vil returnere
     <parameter>string</parameter> med '&lt;br&gt;' indsat før
     nye linier, i stedet for '&lt;br /&gt;'.
    </para>
   </note>
    <para>
     <example>
      <title>Brug af <function>nl2br</function></title>
      <programlisting role="php">
<![CDATA[
<?php
echo nl2br("foo er ikke\n bar");
?>
]]>
      </programlisting>
      <para>
       Dette vil udskrive :
      </para>
      <screen>
<![CDATA[
foo er ikke<br />
 bar
]]>
      </screen>
     </example>
    </para>
    <para>
     Se også <function>htmlspecialchars</function>,
     <function>htmlentities</function>, 
     <function>wordwrap</function>, og
     <function>str_replace</function>.
    </para>
   </refsect1>
  </refentry>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.