diff --git a/docs/en/designers/language-modifiers.xml b/docs/en/designers/language-modifiers.xml
index 09cd0f83..2c65a85d 100644
--- a/docs/en/designers/language-modifiers.xml
+++ b/docs/en/designers/language-modifiers.xml
@@ -752,8 +752,8 @@ href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">bob
assign('articleTitle', 'NJ judge to rule on nude beach.');
+$smarty->display('index.tpl');
?>
]]>
@@ -913,26 +913,38 @@ Sun or rain expected
today, dark tonight
regex_replace
-
- index.php:
-
- $smarty = new Smarty;
- $smarty->assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say.");
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {* replace each carriage return, tab & new line with a space *}
-
- {$articleTitle}
- {$articleTitle|regex_replace:"/[\r\t\n]/":" "}
-
- OUTPUT:
-
- Infertility unlikely to
- be passed on, experts say.
- Infertility unlikely to be passed on, experts say.
+
+assign('articleTitle', "Infertility unlikely to\nbe passed on, experts say.");
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ Where index.tpl is:
+
+
+
+
+
+ This should output:
+
+
+
+
@@ -976,25 +988,37 @@ Sun or rain expected
today, dark tonight
replace
-
- index.php:
-
- $smarty = new Smarty;
- $smarty->assign('articleTitle', "Child's Stool Great for Use in Garden.");
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {$articleTitle}
- {$articleTitle|replace:"Garden":"Vineyard"}
- {$articleTitle|replace:" ":" "}
-
- OUTPUT:
-
- Child's Stool Great for Use in Garden.
- Child's Stool Great for Use in Vineyard.
- Child's Stool Great for Use in Garden.
+
+assign('articleTitle', "Child's Stool Great for Use in Garden.");
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ Where index.tpl is:
+
+
+
+
+
+ This should output:
+
+
+
+
@@ -1033,25 +1057,35 @@ Sun or rain expected
today, dark tonight
spacify
-
- index.php:
-
- $smarty = new Smarty;
- $smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.');
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {$articleTitle}
- {$articleTitle|spacify}
- {$articleTitle|spacify:"^^"}
-
- OUTPUT:
-
- Something Went Wrong in Jet Crash, Experts Say.
- S o m e t h i n g W e n t W r o n g i n J e t C r a s h , E x p e r t s S a y .
- S^^o^^m^^e^^t^^h^^i^^n^^g^^ ^^W^^e^^n^^t^^ ^^W^^r^^o^^n^^g^^ ^^i^^n^^ ^^J^^e^^t^^ ^^C^^r^^a^^s^^h^^,^^ ^^E^^x^^p^^e^^r^^t^^s^^ ^^S^^a^^y^^.
+
+assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.');
+$smarty->display('index.tpl');
+?>
+]]>
+
+ Where index.tpl is:
+
+
+
+
+
+ This should output:
+
+
+
+
@@ -1089,25 +1123,37 @@ Sun or rain expected
today, dark tonight
string_format
-
- index.php:
-
- $smarty = new Smarty;
- $smarty->assign('number', 23.5787446);
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {$number}
- {$number|string_format:"%.2f"}
- {$number|string_format:"%d"}
-
- OUTPUT:
-
- 23.5787446
- 23.58
- 24
+
+assign('number', 23.5787446);
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ Where index.tpl is:
+
+
+
+
+
+ This should output:
+
+
+
+
@@ -1125,28 +1171,38 @@ Sun or rain expected
today, dark tonight
strip
-
+
assign('articleTitle', "Grandmother of\neight makes\t hole in one.");
+$smarty->display('index.tpl');
+?>
+]]>
+
+
+ where index.tpl is:
+
+
+
+
+
+ This will output:
+
+
+
-
+
@@ -1156,23 +1212,36 @@ Grandmother of eight makes hole in one.
strip_tags
-
- index.php:
-
- $smarty = new Smarty;
- $smarty->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New Kidney</font> from Dad she Hasn't Seen in <b>years</b>.");
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {$articleTitle}
- {$articleTitle|strip_tags}
-
- OUTPUT:
-
- 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.
+
+assign('articleTitle', "Blind Woman Gets New
+Kidney from Dad she Hasn't Seen in years.");
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ where index.tpl is:
+
+
+
+
+
+ This will output:
+
+
+New Kidney from Dad she Hasn't Seen in years.
+Blind Woman Gets New Kidney from Dad she Hasn't Seen in years.
+]]>
+
@@ -1231,33 +1300,45 @@ Grandmother of eight makes hole in one.
truncate
-
- index.php:
+
+assign('articleTitle', 'Two Sisters Reunite after Eighteen Years at Checkout Counter.');
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ where index.tpl is:
+
+
+
+
+
+ This will output:
+
+
+
+
@@ -1267,23 +1348,35 @@ Grandmother of eight makes hole in one.
upper
-
- index.php:
-
- $smarty = new Smarty;
- $smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While.");
- $smarty->display('index.tpl');
-
- index.tpl:
-
- {$articleTitle}
- {$articleTitle|upper}
-
- OUTPUT:
-
- If Strike isn't Settled Quickly it may Last a While.
- IF STRIKE ISN'T SETTLED QUICKLY IT MAY LAST A WHILE.
+
+assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While.");
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ where index.tpl is:
+
+
+
+
+
+ This will output:
+
+
+
+
@@ -1341,45 +1434,57 @@ Grandmother of eight makes hole in one.
wordwrap
-
- index.php:
+
+assign('articleTitle', "Blind woman gets new kidney from dad she hasn't seen in years.");
+$smarty->display('index.tpl');
+
+?>
+]]>
+
+ where index.tpl is:
+
+
+
+
+
+ This will output:
+
+
+
+