Files
smarty/docs/de/designers/language-modifiers/language-modifier-strip.xml

51 lines
1.8 KiB
XML
Raw Normal View History

2004-04-13 08:46:28 +00:00
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision$ -->
<sect1 id="language.modifier.strip">
<title>strip (Zeichenkette strippen)</title>
<para>
Ersetzt mehrfache Leerzeichen, Zeilenumbr&uuml;che und Tabulatoren durch ein Leerzeichen
oder eine alternative Zeichenkette.
</para>
<note>
<title>Achtung</title>
<para>
Falls Sie ganze Bl&ouml;cke eines Templates 'strippen' m&ouml;chten,
verwenden Sie dazu <link linkend="language.function.strip">strip</link>.
</para>
</note>
<example>
<title>strip (Zeichenkette strippen)</title>
<programlisting>
{$artikelTitel}
{$artikelTitel|strip}
{$artikelTitel|strip:"&amp;nbsp;"}
AUSGABE:
Ein 18 Jahre alter Pappkarton
erzielte bei Ebay einen Erl&ouml;s von
536 Dollar. Es war der Karton, in dem der erste Apple verpackt war.
Ein 18 Jahre alter Pappkarton erzielte bei Ebay einen Erl&ouml;s von 536 Dollar. Es war der Karton, in dem der erste Apple verpackt war.
Ein&amp;nbsp;18&amp;nbsp;Jahre&amp;nbsp;alter&amp;nbsp;Pappkarton&amp;nbsp;erzielte&amp;nbsp;bei&amp;nbsp;Ebay&amp;nbsp;einen&amp;nbsp;Erl&ouml;s&amp;nbsp;von&amp;nbsp;536&amp;nbsp;Dollar.&amp;nbsp;Es&amp;nbsp;war&amp;nbsp;der&amp;nbsp;Karton,&amp;nbsp;in&amp;nbsp;dem&amp;nbsp;der&amp;nbsp;erste&amp;nbsp;Apple&amp;nbsp;verpackt&amp;nbsp;war.</programlisting>
</example>
</sect1>
<!-- 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
-->