Problems with code in article bodies
My PHP code doesn’t work properly in an article body
<txp:output_form form="my_js_code" />
If you often find yourself calling code from article bodies, you might consider rethinking your design. Articles are for content, code is more appropriate for a page template or form. See if you can place the code in your article form instead.