cvs: smarty /docs/en/designers/language-modifiers language-modifier-strip-tags.xml

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1086096465@cvsserver>
messju		Tue Jun  1 09:27:45 2004 EDT

  Modified files:              
    /smarty/docs/en/designers/language-modifiers	
                                                	language-modifier-strip-tags.xml 
  Log:
  add documentation for the $replace_with_space-parameter of the
  strip_tags-modifier
  
  
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml
diff -u smarty/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml:1.1 smarty/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml:1.2
--- smarty/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml:1.1	Tue Apr 13 04:40:22 2004
+++ smarty/docs/en/designers/language-modifiers/language-modifier-strip-tags.xml	Tue Jun  1 09:27:45 2004
@@ -1,7 +1,34 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
  <sect1 id="language.modifier.strip.tags">
   <title>strip_tags</title>
+  <informaltable frame="all">
+   <tgroup cols="5">
+    <colspec colname="param" align="center" />
+    <colspec colname="type" align="center" />
+    <colspec colname="required" align="center" />
+    <colspec colname="default" align="center" />
+    <colspec colname="desc"/>
+    <thead>
+     <row>
+      <entry>Parameter Position</entry>
+      <entry>Type</entry>
+      <entry>Required</entry>
+      <entry>Default</entry>
+      <entry>Description</entry>
+     </row>
+    </thead>
+    <tbody>
+     <row>
+      <entry>1</entry>
+      <entry>bool</entry>
+      <entry>No</entry>
+      <entry>true</entry>
+      <entry>This determines wether the tags are replaced by ' ' or by ''</entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
   <para>
    This strips out markup tags, basically anything between &lt; and &gt;.
   </para>
@@ -25,7 +52,8 @@
    <programlisting>
 <![CDATA[
 {$articleTitle}
-{$articleTitle|strip_tags}
+{$articleTitle|strip_tags} {* same as {$articleTitle|strip_tags:true} *} 
+{$articleTitle|strip_tags:false}
 ]]>
    </programlisting>
    <para>
@@ -34,6 +62,7 @@
    <screen>
 <![CDATA[
 Blind Woman Gets <font face="helvetica">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>.
+Blind Woman Gets  New Kidney  from Dad she Hasn't Seen in  years .
 Blind Woman Gets New Kidney from Dad she Hasn't Seen in years.
 ]]>
    </screen>

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.