Tag error: <txp:comments_form /> ->  Textpattern Warning: Table 'joshuavaage_joshuavaage.txp_discuss_ipban' doesn't exist
select ip from txp_discuss_ipban where `ip` = '38.107.191.81' limit 1  on line 85
J WÃGE: Escape Textile
 

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 09, 2010


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

Comments

Leave a Comment

Add your comment. Preview then Submit.


Hidden


Textile Help