Escape Textile
- Published Friday July 10, 2009 | Edit
<txp:php>echo date('F Y'); </txp:php> produces the following error when posted to the <txp:body /> of an article:
error: Parse error: syntax error, unexpected $end, expecting T_STRING or T_VARIABLE or '$' in /var/www/sitepath/textpattern/publish/taghandlers.php(3089) : eval()'d code on line 1
As noted here, escaping textile does render the PHP correctly. Escaping in textile is done as follows by wrapping with double equal signs.
==<txp:php>echo date('F Y'); </txp:php>==
And, thereby PHP does echo the date as shown just between these next <hr />s:
Today is March 13, 2010
Now on to establishing a 1000 beat per day format for <txp:posted />…

