Uploaded image for project: 'PHP Macro'
  1. PHP Macro
  2. PHP-2

xwiki removes code from php macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 4.0.46
    • FreeBSD 12.0.
      Intel Pentium(R) Dual-Core CPU E5700, 2Gb RAM
    • Unknown

    Description

      When I am trying to add php macro from the example:

      {{php}}<?php echo 'Hello World!'; ?>{{/php}}

      to the empty page on my xwiki instance I can see the result "Hello World!"  in WYSIWYG of CKEditor. But when I'm trying to save and preview the page I see nothing on it. When I switch back to editor I see only:

      {{php}}{{/php}}

      in the source. Everything I put outside of the

      <? ?>

      symbols stays untouched.

       

       

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              rust9mka MakC Velikii
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: