Escape Textile

Posted Friday July 10, 2009 and modified Monday May 3, 2010
Filed Under: , ,

<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 here: Today is July 31, 2010

Now on to establishing a 1000 beat per day format for <txp:posted />

Filed Under: , ,
· Tweet!

Comments

Add your comment. Preview then Submit.


Hidden


Textile Help

 
Trusted Payments
Send a text to 646.836.9557 (VENMO):
Pay whaleen