aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md')
-rw-r--r--vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md33
1 files changed, 15 insertions, 18 deletions
diff --git a/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md b/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md
index d40646e5f..800de84bf 100644
--- a/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md
+++ b/vendor/smarty/smarty/docs/designers/language-builtin-functions/language-function-strip.md
@@ -1,9 +1,8 @@
-{strip} {#language.function.strip}
-=======
+# {strip}
Many times web designers run into the issue where white space and
carriage returns affect the output of the rendered HTML (browser
-\"features\"), so you must run all your tags together in the template to
+"features"), so you must run all your tags together in the template to
get the desired results. This usually ends up in unreadable or
unmanageable templates.
@@ -15,34 +14,32 @@ worry about extra white space causing problems.
> **Note**
>
> `{strip}{/strip}` does not affect the contents of template variables,
-> see the [strip modifier](#language.modifier.strip) instead.
+> see the [strip modifier](../language-modifiers/language-modifier-strip.md) instead.
-
- {* the following will be all run into one line upon output *}
- {strip}
- <table border='0'>
+```smarty
+{* the following will be all run into one line upon output *}
+{strip}
+ <table>
<tr>
<td>
- <a href="{$url}">
- <font color="red">This is a test</font>
+ <a href="#">
+ This is a test
</a>
</td>
</tr>
</table>
- {/strip}
-
+{/strip}
+```
-
The above example will output:
-
- <table border='0'><tr><td><a href="http://. snipped...</a></td></tr></table>
-
-
+```html
+<table><tr><td><a href="#">This is a test</a></td></tr></table>
+```
Notice that in the above example, all the lines begin and end with HTML
tags. Be aware that all the lines are run together. If you have plain
text at the beginning or end of any line, they will be run together, and
may not be desired results.
-See also the [`strip`](#language.modifier.strip) modifier.
+See also the [`strip`](../language-modifiers/language-modifier-strip.md) modifier.